This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Memory leaks in compiler


On Wed, 16 Jan 2008, Tom Tromey wrote:

Kaveh> A valgrind suppression only silences the error for valgrind.  What if
Kaveh> someone uses another memory checking tool?  Better to fix it for real
Kaveh> IMHO.

Add suppressions for all of them.  Any decent memory checker has to
account for the reality that many programs don't bother freeing memory
before exit.

Valgrind (Memcheck) generally only complains about unfreed blocks for which there is no pointer in live data, ie. truly leaked ones. But it's not perfect, there are various ways it can be fooled.


Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]