Akim Demaille
8f462efe92
named references: fix double free.
...
In `rhs[name]: "a" | "b"', do not free "name" twice.
Reported by Tys Lefering.
<http://lists.gnu.org/archive/html/bug-bison/2010-06/msg00002.html >
* src/named-ref.h, src/named-ref.c (named_ref_copy): New.
* src/parse-gram.y (current_lhs): Rename as...
(current_lhs_symbol): this.
(current_lhs): New function. Use it to free the current lhs
named reference.
* src/reader.c: Bind lhs to a copy of the current named reference.
* src/symlist.c: Rely on free (0) being valid.
* tests/named-refs.at: Test this.
2011-03-09 21:04:17 +01:00
..
2010-10-17 10:23:55 -04:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-02-06 08:52:09 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-03-09 21:04:17 +01:00
2011-03-09 21:04:17 +01:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-24 21:14:46 -05:00
2011-01-24 21:14:46 -05:00
2011-03-09 21:04:17 +01:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-03-06 15:53:16 -05:00
2011-01-02 09:56:16 -05:00
2011-03-09 21:04:17 +01:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2006-06-07 21:17:35 +00:00
2011-01-02 09:56:16 -05:00
2011-02-05 19:15:51 -05:00
2006-08-10 04:53:04 +00:00
2011-01-02 09:56:16 -05:00
2011-02-05 19:15:51 -05:00
2006-08-10 04:53:04 +00:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-03-09 21:04:17 +01:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-03-06 15:53:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00
2011-01-02 09:56:16 -05:00