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
pgpeIBqdeLAVj.pgp
Description: PGP signature