#1267: RoxorVM::pop_outer() leaks memory -----------------------------------+---------------------------------------- Reporter: lsansonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- push_outer() allocates a new outer structure using malloc(), but it's never free()'ed, leading to memory leaks for instance when using #instance_eval(&b) in a loop. We cannot free() the outer in pop_outer() since it may be used somewhere else, so we must either introduce reference counting or use xmalloc() memory (with appropriate write barriers). I think the later is the best solution. -- Ticket URL: <http://www.macruby.org/trac/ticket/1267> MacRuby <http://macruby.org/>