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 (Patriarch) 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.