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