From: Jérémie Astor Date: Fri, 18 Dec 2020 13:01:14 +0000 (+0100) Subject: :bug: Fix byecode freeing X-Git-Tag: nightly~1090 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6a74b19e5d6de377b2762740cc089e7cfc863999;p=gwion.git :bug: Fix byecode freeing --- diff --git a/src/vm/vm_code.c b/src/vm/vm_code.c index 6e98a156..d1d5fb6e 100644 --- a/src/vm/vm_code.c +++ b/src/vm/vm_code.c @@ -30,7 +30,8 @@ ANN void free_vmcode(VM_Code a, Gwion gwion) { if(a->memoize) memoize_end(gwion->mp, a->memoize); if(!a->builtin) { - _mp_free(gwion->mp, vector_size(a->instr) * SZ_INT, a->bytecode); +// _mp_free(gwion->mp, vector_size(a->instr) * SZ_INT, a->bytecode); + _mp_free(gwion->mp, vector_size(a->instr) * BYTECODE_SZ, a->bytecode); _free_code_instr(a->instr, gwion); } if(a->closure)