On Wed Jan 25 10:27:57 2012, LeonT wrote: > On Wed, Jan 25, 2012 at 6:28 PM, bulk 88 via RT > <perlbug-followup@perl.org> wrote: > > "Using Perl to Dispose of Temporaries" in perlcall, wouldn't your > > proposal leak? > > It would be disposed of at the next FREETMPS, which is probably the > next end-of-statement. This is likely to be soon enough, though for > some purposes it may not be. There are more functions in the API that > do this… SvPV already does that for globs and overloaded objects. For other references it pushes a PV onto the save stack, so even FREETMPS won’t free that. SvPVutf8 is supposed to be the utf8 equivalent of SvPV, but it is more like SvPVutf8_force + bugs. -- Father Chrysostomos --- via perlbug: queue: perl5 status: open https://rt.perl.org:443/rt3/Ticket/Display.html?id=108994Thread Previous | Thread Next