summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorokkez <okkez@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-13 16:33:15 +0000
committerokkez <okkez@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-13 16:33:15 +0000
commit8e9ab339881873bba8889fef7210cf47d9892510 (patch)
treeb30a16d81af152dacdf40aff957b2472d0692288 /thread_pthread.c
parent07e447fb7441550b82a9fc90f35d19d416bce72f (diff)
* thread_pthread.c (rb_thread_create_timer_thread): fix memory
leak. [ruby-dev:44904] [Bug #5688] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 1688d3d0df..afef326898 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1243,6 +1243,7 @@ rb_thread_create_timer_thread(void)
fprintf(stderr, "[FATAL] Failed to create timer thread (errno: %d)\n", err);
exit(EXIT_FAILURE);
}
+ pthread_attr_destroy(&attr);
}
}