Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2021-03-08 03:06 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (123 votes). Check out past polls.