We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 200f93b commit 59f7a5dCopy full SHA for 59f7a5d
vm.c
@@ -3104,20 +3104,16 @@ ruby_vm_destruct(rb_vm_t *vm)
3104
rb_id_table_free(vm->constant_cache);
3105
st_free_table(vm->unused_block_warning_table);
3106
3107
- if (th) {
3108
- xfree(th->nt);
3109
- th->nt = NULL;
3110
- }
+ xfree(th->nt);
+ th->nt = NULL;
3111
3112
#ifndef HAVE_SETPROCTITLE
3113
ruby_free_proctitle();
3114
#endif
3115
}
3116
else {
3117
3118
- rb_fiber_reset_root_local_storage(th);
3119
- thread_free(th);
3120
+ rb_fiber_reset_root_local_storage(th);
+ thread_free(th);
3121
3122
3123
struct rb_objspace *objspace = vm->gc.objspace;
0 commit comments