summaryrefslogtreecommitdiff
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 2d7e15c0fa..e997afa0c7 100644
--- a/vm.c
+++ b/vm.c
@@ -1609,6 +1609,7 @@ ruby_vm_destruct(rb_vm_t *vm)
rb_gc_force_recycle(vm->self);
vm->main_thread = 0;
if (th) {
+ rb_fiber_reset_root_local_storage(th->self);
thread_free(th);
}
if (vm->living_threads) {