aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lemon/lemon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/lemon/lemon.c b/tools/lemon/lemon.c
index faa8530870..f2e541a549 100644
--- a/tools/lemon/lemon.c
+++ b/tools/lemon/lemon.c
@@ -615,13 +615,11 @@ struct acttab {
#define acttab_yylookahead(X,N) ((X)->aAction[N].lookahead)
/* Free all memory associated with the given acttab */
-#if 0
PRIVATE void acttab_free(acttab *p){
free( p->aAction );
free( p->aLookahead );
free( p );
}
-#endif
/* Allocate a new acttab structure */
PRIVATE acttab *acttab_alloc(int nsymbol, int nterminal) {
@@ -4436,7 +4434,7 @@ void ReportTable(
}
}
fprintf(out, "};\n"); lineno++;
- free(pActtab);
+ acttab_free(pActtab);
/* Output the yy_shift_ofst[] table */
n = lemp->nxstate;