summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-10 08:02:56 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-10 08:02:56 +0000
commitd91a05c8874dec82c73e50151136de51b7413477 (patch)
tree8abfc074de08f588ea915353af3c998141c3d71f /thread_pthread.c
parent513b0988f0703d7443fca2e6bc883bac23346cad (diff)
merge revision(s) 34033: [Backport #5996]
* 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/branches/ruby_1_9_3@34532 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 38f968e5a1..eff3d81368 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1246,6 +1246,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);
}
rb_disable_interrupt(); /* only timer thread recieve signal */