Control Flow and Memory Management
An exception aborts part of a computation and transfers control to a handler that was established at some earlier point in the computation. A memory leak occurs when memory allocated by a program is no longer reachable, and the memory will not be deallocated. (The term "memory leak" is used only in connection with languages that are not garbage collected, such as C.) Explain why exceptions can lead to memory leaks in a language that is not garbage collected.