diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-20 14:16:02 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-20 14:16:02 +0000 |
commit | d9dfe2e514631be9ae243de8f3b6f52e35ac82e0 (patch) | |
tree | 0e2e984e514bf4d4ed09aee4698c8aab6794669c /thread_pthread.c | |
parent | 187d2bc1d6e6f3f18a443614406598ed6fc0ef0f (diff) | |
download | ruby-d9dfe2e514631be9ae243de8f3b6f52e35ac82e0.tar.gz |
* 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
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 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 |