[Top][All Lists]

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

Re: Memory leak in bison 1.35

From: Tim Van Holder
Subject: Re: Memory leak in bison 1.35
Date: 27 Aug 2002 13:36:26 +0200

On Tue, 2002-08-27 at 12:34, Ignasi Villagrasa wrote:
> Hi everyone,
> I'm using bison version 1.35 that comes with cygwin package for Windows 
> enviroments.
> I detect a memory leak in generated C code. Function yyparse loses 
> periodically 4K chunks memory.
> Because of the unclear generated code, I'd like to know if there's a 
> known solution for this problem before getting into the source code.

Are you also using flex?
At startup, flex allocates a buffer that is never freed; it's not really
a memory leak (flex merely has no point at which it can free the buffer
normally, so it relies on the normal 'at end' cleanup), but will be
reported as such by many memory checkers.
It allocates chunks of 16k tho, not 4k.

reply via email to

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