summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 9748526140..b353a9e64c 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -148,6 +148,9 @@ gvl_init(rb_vm_t *vm)
static void
gvl_destroy(rb_vm_t *vm)
{
+ native_cond_destroy(&vm->gvl.switch_wait_cond);
+ native_cond_destroy(&vm->gvl.switch_cond);
+ native_cond_destroy(&vm->gvl.cond);
native_mutex_destroy(&vm->gvl.lock);
}