Issue #7041 has been updated by shyouhei (Shyouhei Urabe).

Description updated
Category changed from core to YARV
Status changed from Open to Assigned
Assignee set to ko1 (Koichi Sasada)
Priority changed from Urgent to Normal


----------------------------------------
Bug #7041: Memory leak in Mutex
https://bugs.ruby-lang.org/issues/7041#change-29594

Author: stass (Stanislav Sedov)
Status: Assigned
Priority: Normal
Assignee: ko1 (Koichi Sasada)
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/