UMBC CMSC 201
CSEE | 201 | 201 F'06 | lectures | news | help
If you don't free all of the memory you've allocated, then you have a memory leak.
Although many programmers feel it is a waste of time to clean up after themselves by freeing memory that was dynamically allocated, failing to do so can cause systems to crash. Programs that run continuously and need to dynamically allocate more memory (and also should be freeing some) as they run, can quickly accumulate lots of wasted space.