C2x: the next real revision of the C standard
They should add something to run code when leaving a scope, no matter how you leave the scope (break, return, ...).<p>That would allow cleanup and other such actions without resorting to such hacks as: "goto cleanup" pattern, separate functions, fake for loop to break out of, ...