From: "kosaki (Motohiro KOSAKI)" Date: 2012-09-20T22:54:45+09:00 Subject: [ruby-core:47622] [ruby-trunk - Bug #7041] Memory leak in Mutex Issue #7041 has been updated by kosaki (Motohiro KOSAKI). Assignee changed from ko1 (Koichi Sasada) to kosaki (Motohiro KOSAKI) good catch. ---------------------------------------- Bug #7041: Memory leak in Mutex https://bugs.ruby-lang.org/issues/7041#change-29613 Author: stass (Stanislav Sedov) Status: Assigned Priority: Normal Assignee: kosaki (Motohiro KOSAKI) Category: YARV Target version: ruby -v: ruby 2.0.0dev (2012-09-20 trunk 36995) [x86_64-freebsd10.0] =begin Ruby does not destroy pthread condattr structure after allocating and using it in pthread_thread.c:native_cond_initialize(). This causes a memory leak that can be demonstrated by the following snipplet: loop do Mutex.new GC.start end The patch attached fixes it. This happens on both 1.9 and head. =end -- http://bugs.ruby-lang.org/