570: Mainline
Here are the conditions that lead to memory leaks:
- You define a pointer variable or a pointer array.
- You arrange for a pointer to point to a chunk of memory
allocated by the
malloc
function at run time.
- You subsequently arrange for the pointer to point to a
different chunk of memory, thereby rendering the previous
chunk inaccessible.