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 86217098cb..1d343cecf9 100644
--- a/vm.c
+++ b/vm.c
@@ -1611,6 +1611,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) {