From 8e9ab339881873bba8889fef7210cf47d9892510 Mon Sep 17 00:00:00 2001 From: okkez Date: Tue, 13 Dec 2011 16:33:15 +0000 Subject: * 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 --- thread_pthread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thread_pthread.c') 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); } } -- cgit v1.2.1