diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-20 10:25:02 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-20 10:25:02 +0000 |
commit | 237edd7a2f7fc63babff283fae20a5ccd831ff54 (patch) | |
tree | 6ef11a3e57629aaddfcc23419a74e670b9def037 | |
parent | 1695653f548c5187ab3df0653e17e153f3246836 (diff) | |
download | ruby-237edd7a2f7fc63babff283fae20a5ccd831ff54.tar.gz |
* thread_pthread.c (native_thread_destroy): Fixed gvl_cond leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | thread_pthread.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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); } |