aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--thread_pthread.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f6718520b..c4d663249c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Dec 20 20:03:21 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * thread_pthread.c (native_thread_destroy): Fixed gvl_cond leak.
+
Mon Dec 20 13:49:05 2010 Eric Hodel <drbrain@segment7.net>
* NEWS: Add item for RDoc 3.0.1
diff --git a/thread_pthread.c b/thread_pthread.c
index a7def4d42f..dcd1a724bf 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -340,6 +340,7 @@ static void
native_thread_destroy(rb_thread_t *th)
{
pthread_mutex_destroy(&th->interrupt_lock);
+ pthread_cond_destroy(&th->native_thread_data.gvl_cond);
pthread_cond_destroy(&th->native_thread_data.sleep_cond);
}