mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
Always free the main thread in RUBY_FREE_AT_EXIT
This commit is contained in:
parent
1f0da24049
commit
c36c80bc25
6
vm.c
6
vm.c
@ -3343,10 +3343,8 @@ ruby_vm_destruct(rb_vm_t *vm)
|
||||
rb_objspace_free_objects(objspace);
|
||||
rb_free_generic_fields_tbl_();
|
||||
rb_free_default_rand_key();
|
||||
if (th && vm->fork_gen == 0) {
|
||||
/* If we have forked, main_thread may not be the initial thread */
|
||||
ruby_mimfree(th);
|
||||
}
|
||||
|
||||
ruby_mimfree(th);
|
||||
}
|
||||
rb_objspace_free(objspace);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user