Is it a waste of time to free resources before I exit a process?
- by Martin
Let's consider a fictional program that builds a linked list in the heap, and at the end of the program there is a loop that frees all the nodes, and then exits. For this case let's say the linked list is just 500K of memory, and no special space managing is required.
Is that a wast of time, because the OS will do that anyway?
Will there be a…