]> git.saurik.com Git - bison.git/commit
Avoid memory leaks by not invoking longjmp in yyreportAmbiguity.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Thu, 2 Mar 2006 06:18:09 +0000 (06:18 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Thu, 2 Mar 2006 06:18:09 +0000 (06:18 +0000)
commit35ee866a326351fe074945f67f4801fd6b829def
tree90a7d675875b4cbc5093157e3ca63c51145a4b41
parent520181ab91c52ca991b5f96ba1488319368a4214
Avoid memory leaks by not invoking longjmp in yyreportAmbiguity.
* tests/glr-regression.at (Leaked semantic values when reporting
ambiguity): New test case.
* data/glr.c (yyreportAmbiguity): Invoke yyyerror directly and return
yyabort rather than invoking yyFail, which invokes longjmp.  Remove the
now unnecessary yystackp parameter.
(yyresolveValue): Return yyreportAmbiguity's result.  Now the necessary
destructors can be called.

* tests/glr-regression.at: Don't invoke bison with `-t' unnecessarily
in existing testcases.
ChangeLog
data/glr.c
tests/glr-regression.at