Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 avoiding work at the Monastery: (16)
As of 2014-12-18 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (61 votes), past polls