What It Really Means When A Program 'Leaks Memory'

People often cry "memory leak" when a program is using lots of RAM, but it's a bit more complicated than that. Linus at Techquickie breaks down the truth behind memory leaks in this video.

Memory leaks are a very specific kind of high RAM usage. Usually, when a program stops a certain task, it will keep some stuff in memory in case you re-launch that task later (which is good!). However, it will mark it OK to "clear" in case your system needs that RAM for something important. Memory leaks happen when a program doesn't mark that finished task as OK to clear -- meaning it just stays in memory forever until you close the program completely or restart your computer (which is bad).

Unfortunately, memory leaks are usually the result of bad programming, which means there's not much you can do to fix and prevent them. You just have to restart occasionally or, better yet, stop using that program. Check out the video above for Linus' in-depth explanation.

Memory Leakage as Fast as Possible [Techquickie]


Comments

    Posting a list of the programs (apps) that do this would be good, then you would have the choice of finding a better app or removing it completely.

    I think you missed a common occurrence with these errors. Because the memory is not released correctly and the code is shoddy - often the program will ask for more. Run this cycle over and over and it can eventually cause the program or your system to crash. Our modern OS(s) are generally robust enough to ensure it can recover from this sort of issue but it's still a huge problem for many programs.

Join the discussion!