Re: Memory leaks - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: Memory leaks
Date
Msg-id 1035319001.3708.1.camel@rh72.home.ee
Whole thread Raw
In response to Re: Memory leaks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, 2002-10-23 at 03:09, Tom Lane wrote:
> It's fairly difficult to get anywhere with standard leak-tracking tools,
> since they don't know anything about palloc.  What's worse, it is *not*
> a bug for a routine to palloc space it never pfrees, if it knows that
> it's palloc'ing in a short-lived memory context.  The fact that a
> context may be released with much still-allocated memory in it is not a
> bug but a feature; but try teaching that to any standard leak checker...

Seems that Valgrind should have no problems with it, as it tracks actual
usage of _memory_ (down to single bits :)) , not malloc/free. 

See:  http://developer.kde.org/~sewardj/

---------------
Hannu




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_dump and large files - is this a problem?
Next
From: Tom Lane
Date:
Subject: Thinking about IN/EXISTS optimization