Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 browsing the Monastery: (2)
As of 2016-07-31 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (269 votes). Check out past polls.