What It Really Means When A Program ‘Leaks Memory’

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]

The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.


3 responses to “What It Really Means When A Program ‘Leaks Memory’”

Leave a Reply