bison-patches
[Top][All Lists]
Advanced

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

Re: Valgrind and Bison memory leaks


From: Paul Eggert
Subject: Re: Valgrind and Bison memory leaks
Date: Tue, 07 Nov 2006 22:36:07 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

"Joel E. Denny" <address@hidden> writes:

> I try to use Valgrind to make sure I don't create new memory leaks in 
> Bison.  However, Valgrind's complaints about all the existing memory leaks 
> really get in the way.

My kneejerk reaction is that these changes make the code harder to
follow, harder to maintain, bigger, and slower.  (I was particularly
bemused by the union of const char * and char *.  :-)

Surely there's a better way to pacify Valgrind.  Can we tell Valgrind
which leaks to ignore, in some fairly-systematic way, without needing
a lot of makework changes to Bison proper?




reply via email to

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