]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix gtmpl
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 23 Jun 2019 12:45:00 +0000 (14:45 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 23 Jun 2019 12:45:00 +0000 (14:45 +0200)
src/lib/instr.c

index 7fa2239b4095c4bf7e73542c28961801d8023ee9..c9956d5b0d4dbee551abc823a5f72b3c82105ee5 100644 (file)
@@ -74,7 +74,7 @@ INSTR(GTmpl) {
       name, tmpl_name, i);
     const Func base = nspc_lookup_func1(f->value_ref->owner, sym);
     if(base) {
-      xfree(tmpl_name);
+      free_mstr(emit->gwion->mp, tmpl_name);
       assert(base->code);
       if(GET_FLAG(base->def, static))
         shred->reg -= SZ_INT;