diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2021-03-11 20:06:14 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2021-03-11 20:06:14 +0900 |
commit | 0074ea2d83230e10ab0cd769fff203c13d3c592f (patch) | |
tree | ff05df5bc60d662584beb19da2f21dc7d39675ad /vm.c | |
parent | 05fa06a4ed419949e79e79ff088c19fb2ecb07b7 (diff) |
merge revision(s) 2a83650b0fd25719fb6c03bfec7bd895734d3ceb: [Backport #15852]
Destroy VM-wise locks before freeing [Bug #15852]
---
thread.c | 7 -------
vm.c | 2 ++
2 files changed, 2 insertions(+), 7 deletions(-)
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2653,6 +2653,8 @@ ruby_vm_destruct(rb_vm_t *vm) if (objspace) { rb_objspace_free(objspace); } + rb_native_mutex_destroy(&vm->waitpid_lock); + rb_native_mutex_destroy(&vm->workqueue_lock); /* after freeing objspace, you *can't* use ruby_xfree() */ ruby_mimfree(vm); ruby_current_vm_ptr = NULL; |