Understanding memory leaks - using Valgrind (memcheck)
Updated -
Introduction
The purpose of this article is to help you understand what a memory leak is and how to detect it using valgrind.
What is a memory leak?
A process leaks memory when it dynamically allocates memory at run time and forgets about the allocation, never using that memory again. This memory becomes a wasted resource as the kernel cannot allocate it to any other p...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.