noun
A memory leak occurs when a computer program allocates memory but fails to deallocate it when no longer needed, causing the system to gradually consume more and more RAM or storage.
This typically happens due to programming errors, such as forgetting to free memory after use or losing references to allocated blocks. Over time, the system may run out of available memory, leading to slowdowns, crashes, or forced restarts.
For developers, memory leaks require careful debugging and code review to identify and fix. For users, they may notice their device becoming sluggish over time, especially after running the same application repeatedly. A common example is a web browser that becomes unresponsive after hours of use, requiring a restart to free up memory.
After leaving a video editing software open for 12 hours, the program's memory usage climbed from 2GB to 8GB, forcing the user to close and reopen it.