summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-08 01:40:54 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-08 01:40:54 +0000
commitaffa47ae4db231c37b9da85f66e2ed50182b86f5 (patch)
tree9fef792fbba8d63f5c9a5ee93465af5799804849 /thread_pthread.c
parent50b64ee7dea249c1324b27742ce55cf6f9eef2a8 (diff)
* thread_pthread.c (gvl_destroy): fix cond_t leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);
}