From 297717af2a0ee6d8449d39b96aa36284fbcea824 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 6 Apr 2020 11:21:56 +0200 Subject: [PATCH] :art: Improve func cleaning --- src/parse/func.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parse/func.c b/src/parse/func.c index 3bc7c7dc..6c78802c 100644 --- a/src/parse/func.c +++ b/src/parse/func.c @@ -5,7 +5,8 @@ #include "gwion.h" ANN static void free_func(Func a, Gwion gwion) { - if(GET_FLAG(a, template) && !GET_FLAG(a, builtin)/* && a->def->d.code*/) +// if(GET_FLAG(a, template) && !GET_FLAG(a, builtin)/* && a->def->d.code*/) + if(GET_FLAG(a, template)) free_func_def(gwion->mp, a->def); if(a->code) REM_REF(a->code, gwion); -- 2.43.0