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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content