From: Jérémie Astor Date: Mon, 30 Aug 2021 12:28:01 +0000 (+0200) Subject: :bug: Small release hack X-Git-Tag: nightly~470^2~34 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1e12aa530e4cc53c8a2b2fb0ae779f3c44520ca5;p=gwion.git :bug: Small release hack --- diff --git a/src/vm/vm.c b/src/vm/vm.c index 31c23a39..4019d2b5 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -1071,7 +1071,7 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] DISPATCH() addref : { const M_Object o = *(M_Object *)(reg + IVAL); - // if(o) + if(o) ++o->ref; } DISPATCH() @@ -1088,7 +1088,7 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] DISPATCH() objassign : { const M_Object o = **(M_Object **)(reg - SZ_INT); - release(o, shred); +// release(o, shred); } assign: reg -= SZ_INT;