23 May
2011
23 May
'11
11:59 p.m.
#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/>