[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leak detector?

From: Paul Pluzhnikov
Subject: Re: Memory leak detector?
Date: Wed, 31 Oct 2007 23:40:17 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Ron House <> writes:

> Does anyone happen to know of a memory leak detector that would work
> with g++ new and delete (as opposed to malloc and free)?

Since global new and delete call malloc and free, *every* leak
detector works just fine with them.

OTOH, if you are overloading new/delete for your classes in
non-trivial ways, then no leak detector will likely work without
some tweaking. It is often easier to just disable such overloading
in -DLEAK_DEBUG builds, rather than tweak the leak detector to
understand your memory management scheme.

In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]