From: Jérémie Astor Date: Wed, 6 May 2020 22:52:45 +0000 (+0200) Subject: :bug: Fix gack X-Git-Tag: nightly~1640 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2463d2912526b9f1d3641473564598ceb5936039;p=gwion.git :bug: Fix gack --- diff --git a/src/vm/vm.c b/src/vm/vm.c index ebe1f586..248d56e0 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -864,7 +864,8 @@ gackend: gw_out("%s\n", str); else *(M_Object*)(reg - SZ_INT)= new_string(vm->gwion->mp, shred, str); - mp_free2(vm->gwion->mp, strlen(str), str); + if(str) + mp_free2(vm->gwion->mp, strlen(str), str); DISPATCH(); } gack: