About memory leaks

Leaked memory is memory that is allocated but never freed, and for which no pointers are accessible. Although these blocks of memory can't be used again or freed, they still occupy address space. Because leaked memory blocks are typically scattered throughout the heap, the address space becomes fragmented. The memory leaks gradually affect the performance of the program, and can eventually cause the program to fail from lack of memory.

Notes: