From d9dfe2e514631be9ae243de8f3b6f52e35ac82e0 Mon Sep 17 00:00:00 2001 From: kosaki Date: Thu, 20 Sep 2012 14:16:02 +0000 Subject: [PATCH] * thread_pthread.c (native_cond_initialize): destroy condattr after using it. Patch by Stanislav Sedov. Thank you. [Bug #7041] [ruby-core:47619] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ thread_pthread.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index a8d7ea55f5..0dee4686b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Sep 20 23:05:11 2012 KOSAKI Motohiro + + * thread_pthread.c (native_cond_initialize): destroy condattr + after using it. Patch by Stanislav Sedov. Thank you. + [Bug #7041] [ruby-core:47619] + Thu Sep 20 22:53:02 2012 KOSAKI Motohiro * thread_pthread.c (native_cond_initialize): clean up #ifdef condition. diff --git a/thread_pthread.c b/thread_pthread.c index a9c8fa68fb..be6b017e50 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -263,6 +263,7 @@ native_cond_initialize(rb_thread_cond_t *cond, int flags) } r = pthread_cond_init(&cond->cond, &attr); + pthread_condattr_destroy(&attr); # else r = pthread_cond_init(&cond->cond, NULL); # endif