643: Mainline
Here are the conditions that lead to memory leaks:
- You define a pointer variable or a pointer array.
- You arrange for the pointer to point to a chunk of memory
allocated by the
new
operator at run time.
- You subsequently arrange for the pointer to point to a
different chunk of memory.