Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-04-27 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (514 votes). Check out past polls.