Memory leak in software is due to a. Heavy recursion used in logic b. Using structures of large size. c. Improper use of the CPU registers. d. Improper release of allocated memory. code example
Example: memory overflow
In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations in a way that memory which is no longer needed is not released. A memory leak may also happen when an object is stored in memory but cannot be accessed by the running code.