mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
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
This commit is contained in:
parent
fada2e46bb
commit
cedd050e4d
3 changed files with 9 additions and 3 deletions
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue