Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^6: "goto" memory leak

by jethro (Monsignor)
on Mar 31, 2016 at 13:15 UTC ( #1159200=note: print w/replies, xml ) Need Help??


in reply to Re^5: "goto" memory leak
in thread "goto" memory leak

Very true, it is impossible to check for scope exit. But would it be possible to check somehow (with a flag attached to the variable for example) whether the my variable already has a "destroy" POST routine on the stack or not?

Replies are listed 'Best First'.
Re^7: "goto" memory leak
by ikegami (Pope) on Apr 01, 2016 at 15:44 UTC
    That would require extra memory for each PAD entry, and would require extra time to exit a scope, just to avoid some rare degenerate case where someone uses bad coding practices. That would be a bad tradeoff.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2020-05-27 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (155 votes). Check out past polls.

    Notices?