Should I free memory before exit?
This is actually a really hard, imponderable question. Pro (in favor of freeing everything before exit): no bugs or memory leaks later if code is rearranged no false positives from valgrind or memory leak checker no memory leaks if you’re running under a buggy OS, or no OS at all Con (just exit, don’t worry … Read more