On Thursday 17 July 2008 15:44:36 NotFound wrote:

> <[EMAIL PROTECTED]> wrote:
> > With this patch, the new tests still pass on Linux/x86.  The patch uses
> > STRING->strstart to avoid leaking a malloc'd buffer when throwing an
> > exception, which may or may not be considered kosher in this situation.
>
> Can't you use real_exception(interp, NULL, E_SystemError, "%Ss",
> errmsg_pstring); ?
>
> Using internal details of parrot strings must be avoided.

NotFound's solution is correct; that's the way to go here.

-- c

Reply via email to