Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 81,040 posts.

Any topic
Any year
42282

Three kinds of memory leaks

So, you’ve got a program that’s using more and more over time as it runs. Probably you can immediately identify this as a likely symptom of a memory leak. But when we say “memory leak”, what do we actually mean? In my experience, apparent memory leaks divide into three broad categories, each with somewhat different…