bug-gplusplus
[Top][All Lists]
Advanced

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

Re: memory leak in STL vector?


From: André Pönitz
Subject: Re: memory leak in STL vector?
Date: 5 Jun 2002 10:32:34 GMT

Thomas Hamelryck <address@hidden> wrote:
> I think I've come across a bug in the STL vector implementation
> of g++ (g++ 2.95, g++ 2.96, on Mandrake Linux). The problem is a
> meory leak in vector. When I test the following small test program
> with ccmalloc (a memory leak identifier), a memory leak is reported:

I'd rather expect some bug in the leak detector you use or in the way you
use it.

But maybe there is some kind of optimization done such that no memory is
returned if "the end is near" since it would be re-claimed by the OS
anyway.
 
Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



reply via email to

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