in reply to Re: Re: Re: Perl XS: garbage-collecting my malloc'd buffer
in thread Perl XS: garbage-collecting my malloc'd buffer

Wouldn't calling sv_grow() directly fix that?

                - tye
  • Comment on Re^4: Perl XS: garbage-collecting my malloc'd buffer (sv_grow?)

Replies are listed 'Best First'.
Re^5: Perl XS: garbage-collecting my malloc'd buffer
by Elian (Parson) on Mar 03, 2003 at 18:21 UTC
    Yep, it would. SvGROW tries to be clever, and fails, unfortunately. (And the docs discourage using sv_grow directly, just to compound the potential problems)