diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-02-29 19:37:12 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-02-29 19:37:12 +0000 |
commit | 2d99735ad90e15dc4acb7850a12dfc3b1fc07467 (patch) | |
tree | 5b8f864c0b941e09085d5c5259d968d92555a641 /lr0.c | |
parent | c021d7a62270a1857f906697e771ca46fccb0106 (diff) |
Diffstat (limited to 'lr0.c')
-rw-r--r-- | lr0.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: lr0.c,v 1.16 2014/04/07 21:53:50 tom Exp $ */ +/* $Id: lr0.c,v 1.17 2014/11/28 15:46:42 tom Exp $ */ #include "defs.h" @@ -30,6 +30,8 @@ static reductions *last_reduction; static int nshifts; static Value_t *shift_symbol; +static Value_t *rules; + static Value_t *redset; static Value_t *shiftset; @@ -483,7 +485,6 @@ set_derives(void) { Value_t i, k; int lhs; - Value_t *rules; derives = NEW2(nsyms, Value_t *); rules = NEW2(nvars + nrules, Value_t); @@ -597,6 +598,7 @@ lr0_leaks(void) { DO_FREE(derives[start_symbol]); DO_FREE(derives); + DO_FREE(rules); } DO_FREE(nullable); } |