diff options
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); } |