aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 80e470f5ad..8f62e22008 100644
--- a/vm.c
+++ b/vm.c
@@ -1448,6 +1448,7 @@ vm_free(void *ptr)
rb_vm_t *vmobj = ptr;
st_free_table(vmobj->living_threads);
+ vmobj->living_threads = 0;
/* TODO: MultiVM Instance */
/* VM object should not be cleaned by GC */
/* ruby_xfree(ptr); */