If you allocate memory dynamically from the heap, then don't return it before the program exits, it's no longer available for other programs.