diff options
author | okkez <okkez@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-13 16:33:15 +0000 |
---|---|---|
committer | okkez <okkez@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-13 16:33:15 +0000 |
commit | 8e9ab339881873bba8889fef7210cf47d9892510 (patch) | |
tree | b30a16d81af152dacdf40aff957b2472d0692288 /thread_pthread.c | |
parent | 07e447fb7441550b82a9fc90f35d19d416bce72f (diff) | |
download | ruby-8e9ab339881873bba8889fef7210cf47d9892510.tar.gz |
* 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.c | 1 |
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); } } |