aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--thread_pthread.c1
2 files changed, 7 insertions, 0 deletions
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 <kosaki.motohiro@gmail.com>
+
+ * 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 <kosaki.motohiro@gmail.com>
* 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