]> Nishi Git Mirror - gwion.git/commitdiff
:art: Improve func cleaning
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 6 Apr 2020 09:21:56 +0000 (11:21 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 6 Apr 2020 09:21:56 +0000 (11:21 +0200)
src/parse/func.c

index 3bc7c7dc3a2f9c7df32398d8ddbdbfc692fea541..6c78802cddf5438981431f9017a82b6804579048 100644 (file)
@@ -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);