diff options
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 |