On Wednesday 08 August 2007 02:54:37 Joshua Hoblitt wrote: > I hate to sound like the nag here but why don't we just not write code > in form 'real_exception(string_from_cstring(foo))'. Part of living with > dynamic memory allocating is dealing with the line bloat of shoving that > free() call in there.
To my knowledge, real_exception() doesn't return, so any subsequent free() calls don't get called. If nothing catches the exception and Parrot exits, that's fine. If something catches the call, it might or might not free the C string. -- c