3 ms·
Freeing stuff allocated in the same scope is both easy to do and easy to catch when debugging. If you have multiple returns just use goto FINALLY instead of ret
by bluecalm 4y ago
Freeing stuff allocated in the same scope is both easy to do and easy to catch when debugging.
If you have multiple returns just use goto FINALLY instead of returns and put the deallocations before the return there.