[MacRuby] #1299: String#split(nil) on big string leaks memory
#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/>
#1299: String#split(nil) on big string leaks memory -----------------------------------+---------------------------------------- Reporter: lsansonetti@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | -----------------------------------+---------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.11 Comment: Should be fixed by https://github.com/MacRuby/MacRuby/commit/c3266ebae2e3a9f59a50aba12fbc459fc6.... -- Ticket URL: <http://www.macruby.org/trac/ticket/1299#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby