help-bison
[Top][All Lists]
Advanced

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

Re: Memory leak with reentrant parser


From: John W
Subject: Re: Memory leak with reentrant parser
Date: Fri, 19 Jun 2015 15:50:31 +0000

On Fri, Jun 19, 2015 at 03:28:48PM +0200, Martin Alexander Neumann wrote:
> Hi John,
> 
> I guess your "strdup" eats the memory. You need to manage this dynamic
> memory somewhere in the parser/your program.
> 
> Maybe interesting for you: in case of automated parser recovery, bison
> offers %destructor[1] to handle memory of automatically discarded symbols.

I unfortunately discovered this shortly after I had sent the mail.  I
was hoping it was a subscribe-only list to save myself the embarrassment
;)  Just a byproduct of coding for too long at once.

Thanks, and I'll definitely look into your suggestion as well!



reply via email to

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