From 6a74b19e5d6de377b2762740cc089e7cfc863999 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 18 Dec 2020 14:01:14 +0100 Subject: [PATCH] :bug: Fix byecode freeing --- src/vm/vm_code.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.43.0