Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
NodeReaper patches his monknet

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2016-12-05 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (75 votes). Check out past polls.