2 ms·
Very good article, I like the examination of various open source project's use of memory allocation and failure checking. For me personally it depends on the p
by bcl 17y ago
Very good article, I like the examination of various open source project's use of memory allocation and failure checking.
For me personally it depends on the project. If there is nothing to clean up in the rest of the code an abort in the malloc function is fine. But if there are other things to deal with at shutdown you have to bit the bullet and check your return values all the way back up the call stack.