From e3d622d306cd65afb4aa4e8a07da2449ecab93bc Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 15 Oct 2019 03:41:45 +0200 Subject: [PATCH] :bomb: Remove tuple leak --- src/lib/tuple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tuple.c b/src/lib/tuple.c index 1844ec69..fe363b2e 100644 --- a/src/lib/tuple.c +++ b/src/lib/tuple.c @@ -313,7 +313,7 @@ ANN Type tuple_type(const Env env, const Vector v, const loc_t pos) { Section * section = new_section_stmt_list(env->gwion->mp, base); Class_Body body = new_class_body(env->gwion->mp, section, NULL); const ID_List ilist = new_id_list(env->gwion->mp, insert_symbol(env->gwion->type[et_tuple]->name), - loc_cpy(env->gwion->mp, loc_cpy(env->gwion->mp, pos))); + loc_cpy(env->gwion->mp, pos)); Type_Decl *td = new_type_decl(env->gwion->mp, ilist); Class_Def cdef = new_class_def(env->gwion->mp, ae_flag_template, sym, td, body, loc_cpy(env->gwion->mp, pos)); -- 2.43.0