summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 6659972d97..b290677e3d 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -248,6 +248,7 @@ native_cond_initialize(rb_thread_cond_t *cond, int flags)
#endif
r = pthread_cond_init(&cond->cond, &attr);
+ pthread_condattr_destroy(&attr);
if (r != 0) {
rb_bug_errno("pthread_cond_init", r);
}