diff --git a/ChangeLog b/ChangeLog index ba7acb1543..a87737fe65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jul 8 10:39:52 2011 KOSAKI Motohiro + + * thread_pthread.c (gvl_destroy): fix cond_t leak. + Fri Jul 8 09:17:59 2011 Eric Hodel * gc.c: Improve documentation 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); }