Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: perlembed: mortalize an AV, get "Attempt to free unreferenced scalar" - don't mortalize, leaks memory

by edan (Curate)
on Jul 10, 2006 at 11:47 UTC ( #560116=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        FREETMPS;
        LEAVE;
    
  2. or download this
        HV *hash = (HV *)sv_2mortal((SV *) newHV());
        SV *type = newSVpv("string", 0);
    ...
        }
        XPUSHs(sv_2mortal(newRV((SV *)hash)));
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://560116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-09-19 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls