[MacRuby] #1299: String#split(nil) on big string leaks memory
MacRuby
ruby-noreply at macosforge.org
Mon May 23 16:59:18 PDT 2011
#1299: String#split(nil) on big string leaks memory
-----------------------------------+----------------------------------------
Reporter: lsansonetti@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
... because rb_str_get_uchars_always() allocates the buf->chars buffer
using malloc() but we never free() it.
Switching to xmalloc() fixes the problem.
--
Ticket URL: <http://www.macruby.org/trac/ticket/1299>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list