Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by demerphq (Chancellor)
on Jul 10, 2006 at 11:09 UTC ( #560111=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @x; # @x has a refcount of 1
    { 
      my @array=(\@x);  # @x has a refcount of 2
    } # Free lexicals
    # @x has a refcount of 1
    
  2. or download this
    procedure refcount_dec(item)
      if ( --item.refcount == 0 ) 
    ...
        endif
      endif
    endproc 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-07-29 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls