Re: yydestruct leaks

2001-02-07 Thread Alan Burlison
[EMAIL PROTECTED] wrote: > Hmm, so this is (kind of) akin to the regcomp fix - it is the "new" stuff > that is in yyl?val that should be free-d. And it is worse than that > as yyl?val is just the topmost the parser state, so if I understand correctly > it isn't only their current values, but also

Re: yydestruct leaks

2001-02-07 Thread nick
Alan Burlison <[EMAIL PROTECTED]> writes: >If an eval{} fails because of a snytax error, yydestroy is called on >leaving the eval scope. Unfortunately it does this: > >yyval = ysave->oldyyval; >yylval = ysave->oldyylval; > >So anything that is in those 2 vars that hasn't made i