perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: [MP2] possible pnotes bug?
Date Tue, 06 Jun 2006 11:35:35 GMT
On Tuesday 06 June 2006 12:38, Philip M. Gollucci wrote:
> Torsten Foertsch wrote:
> > What is the common understanding on this point by now?
> > -            retval = *hv_store(*pnotes, k, len, SvREFCNT_inc(val), 0);
> > +            retval = *hv_store(*pnotes, k, len, newSVsv(val), 0);
>
> Pushes the cobwebs aside.....
> I agree that the change you propose will accomplish what you want, but
> at some point later, don't we need to free this new AV()?

The only reference to the new SV is from the pnotes HV. When the HV is 
destroyed all contained SVs will be destroyed as well, right? Correct me if I 
am wrong here. My XS experience is quite limited.

Torsten

Mime
View raw message