Dear all,

If a C program malloc'ed some memory, but somehow exited without calling free(), will the malloc'ed memory be freed by the OS automatically?

If the answer is no, then does it means after running that program for a number of times, the OS will run out of memory?

TIA,
Michael