Re: Why IMCC Leaks Memory and How You Can Help Fix It

2008-02-04 Thread Andy Lester
On Feb 4, 2008, at 1:21 AM, Andy Lester wrote: SymReg * r = _get_sym_typed(hsh, name, t); if (r) { free(name); return r; } It's really saying "If I don't need a copy, then free what I assume is a copy", rather than "If I need a copy,

Re: Why IMCC Leaks Memory and How You Can Help Fix It

2008-02-03 Thread Andy Lester
While we're at it, how about the horror of delete_ins() being told whether it should be freeing its argument? -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Why IMCC Leaks Memory and How You Can Help Fix It

2008-02-03 Thread Andy Lester
On Feb 4, 2008, at 12:44 AM, chromatic wrote: SymReg * r = _get_sym_typed(hsh, name, t); if (r) { free(name); return r; } It's really saying "If I don't need a copy, then free what I assume is a copy", rather than "If I need a copy,