[MacRuby] #1300: Dir.entries() leaks memory

MacRuby ruby-noreply at macosforge.org
Mon May 23 17:00:38 PDT 2011


#1300: Dir.entries() leaks memory
-----------------------------------+----------------------------------------
 Reporter:  lsansonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:                       
Component:  MacRuby                |    Keywords:                       
-----------------------------------+----------------------------------------
 Dir.entries is syntaxic sugar for Dir.new, which leaks both the directory
 descriptor and the path (strdup() call).

 We must register a finalize method that closes the descriptor and frees
 the path.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1300>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list