Open TravisWhitaker opened 8 years ago
I've found lots of things like pointers from malloc/fopen/etc. that aren't checked through the course of adding proper error handling. We should do an exhaustive check for these sorts of things at some point.
Some kind of xmalloc would be good. perror and exit
xmalloc
perror
exit
Using things like xmalloc will make interfacing with things that need to clean up after themselves (e.g. language runtimes) untenable.
I've found lots of things like pointers from malloc/fopen/etc. that aren't checked through the course of adding proper error handling. We should do an exhaustive check for these sorts of things at some point.