[MacRuby] #858: "rake spec:ci" crashes.
MacRuby
ruby-noreply at macosforge.org
Thu Aug 26 13:32:19 PDT 2010
#858: "rake spec:ci" crashes.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: 0.7-blocker
----------------------------------+-----------------------------------------
Comment(by lsansonetti@…):
The first snippet is indeed a leak. Good catch, feel free to commit the
fix :)
The second one does not seem good, since _bs_main_bundle_bs_path() returns
a static malloc()'ed string, so freeing it might cause a crash at next
usage. It's probably better to leave it like this (it's just one allocated
string for the whole process life).
The third and fourth ones are not leaks. Memory allocated by xmalloc()
will be free'ed automatically. xfree() forces memory free (sometimes, our
GC is not deterministic) but it's not needed.
--
Ticket URL: <http://www.macruby.org/trac/ticket/858#comment:24>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list