diff options
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1730,6 +1730,8 @@ thread_free(void *ptr) #endif ruby_xfree(ptr); } + if (ruby_current_thread == th) + ruby_current_thread = NULL; } RUBY_FREE_LEAVE("thread"); } |