Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 surveying the Monastery: (9)
As of 2015-06-02 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (116 votes), past polls