]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix freearg_dottmpl
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 10 Sep 2019 20:48:06 +0000 (22:48 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 10 Sep 2019 20:48:06 +0000 (22:48 +0200)
src/lib/func.c

index 7d34c9ddafe954f7247bde8ee86052c0a825fe25..dde379b3b318a0313ef3f4ff319a264576b1c7aa 100644 (file)
@@ -292,7 +292,8 @@ static FREEARG(freearg_xork) {
 
 static FREEARG(freearg_dottmpl) {
   struct dottmpl_ *dt = (struct dottmpl_*)instr->m_val;
-  free_type_list(((Gwion)gwion)->mp, dt->tl);
+  if(dt->tl)
+    free_type_list(((Gwion)gwion)->mp, dt->tl);
   mp_free(((Gwion)gwion)->mp, dottmpl, dt);
 }