diff options
author | okkez <okkez@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-13 15:29:27 +0000 |
---|---|---|
committer | okkez <okkez@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-13 15:29:27 +0000 |
commit | cedd050e4d5c97db2f584b2a6a452fc326e0bc4b (patch) | |
tree | 270e14266e0d9460db8694fe3af772ab9d28cd0c /thread_pthread.c | |
parent | fada2e46bbabeeafdb34800dcd9261aac65c0cde (diff) |
merge revision(s) 34033: [Backport #5997]
* thread_pthread.c (rb_thread_create_timer_thread): fix memory
leak. [ruby-dev:44904] [Bug #5688]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index cf054f5e44..627e39bb60 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -857,6 +857,7 @@ rb_thread_create_timer_thread(void) } native_cond_wait(&timer_thread_cond, &timer_thread_lock); native_mutex_unlock(&timer_thread_lock); + pthread_attr_destroy(&attr); } rb_disable_interrupt(); /* only timer thread recieve signal */ } |