From: fennecdjay Date: Sun, 13 Oct 2019 19:47:09 +0000 (+0200) Subject: :bomb: Fix leak X-Git-Tag: nightly~2152 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ddfc851c32ad0efcd6a4219b80f534fa3857ff2f;p=gwion.git :bomb: Fix leak --- diff --git a/src/lib/tuple.c b/src/lib/tuple.c index 037de5b9..1844ec69 100644 --- a/src/lib/tuple.c +++ b/src/lib/tuple.c @@ -290,7 +290,7 @@ ANN Type tuple_type(const Env env, const Vector v, const loc_t pos) { const Symbol sym = insert_symbol(name); const Type t = (Type)vector_at(v, i); const Symbol tsym = insert_symbol(t != (Type)1 ? t->name : "@Undefined"); - Exp decl = decl_from_id(env->gwion->mp, tsym, sym, loc_cpy(env->gwion->mp, pos)); + Exp decl = decl_from_id(env->gwion->mp, tsym, sym, pos); const Stmt stmt = new_stmt_exp(env->gwion->mp, ae_stmt_exp, decl); const Stmt_List slist = new_stmt_list(env->gwion->mp, stmt, NULL); if(curr)