Re:Modern C for C++ Peeps
by bluecalm on Saturday January 07, 2023 @12:35PM
(#34290412)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.