Possible Duplicate:
Is freeing allocated memory needed when exiting a program in C
I was reading the page "Freeing Memory Allocated with malloc
" and ran across this sentence:
There is no point in freeing blocks at the end of a program, because all of the program's space is given back to the system when the process terminates.
I realize what the author is trying to say, but shouldn't the sentence be:
There is no point in freeing blocks at the end of a program, because all of the program's space is given back to the system when the process terminates, although you should still make sure you program frees all malloc'ed memory before exiting.
Or is it common practice to not de-allocate memory before the termination of the process?