Ben Bullock wrote:
Is there a way to push an AV * onto the stack as an array?
Right now I have the following:
if (wantarray) {
EXTEND (SP, av_len (wantarray));
for (i = 0; i <= av_len (wantarray); i++) {
PUSHs (sv_2mortal (*(av_fet
Ben Bullock wrote:
On 25 March 2013 07:07, bulk88 wrote:
"PUSHs (sv_2mortal (*(av_fetch (wantarray, i, 0;" will cause a double
free. av_fetch doesn't give you a refcount notch to own.
Thanks for spotting that. I decided to use av_undef to delete it. Here
is the new code: