Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. A memory leak, in
computer science, occurs when a computer program consumes memory but is
unable to release it back to the operating system. A memory leak has
symptoms similar to a number of other problems and generally can only be
diagnosed by a programmer with access to the program source code;
however, many people refer to any unwanted increase in memory usage as a
memory leak, though this is not strictly accurate. A memory leak can
diminish the performance of the computer by reducing the amount of
available memory. Eventually, in the worst case, too much of the
available memory may become allocated and all or part of the system or
device stops working correctly, the application fails, or the system
slows down unacceptably due to thrashing. Memory leaks may not be
serious or even detectable by normal means. In modern operating systems,
normal memory used by an application is released when the application
terminates. This means that a memory leak in a program that only runs
for a short time may not be noticed and is rarely serious.