From 2463d2912526b9f1d3641473564598ceb5936039 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 7 May 2020 00:52:45 +0200 Subject: [PATCH] :bug: Fix gack --- src/vm/vm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.43.0