From 8419d367e1c296fa98b42a35820147fe5588b125 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 29 Dec 2001 14:24:35 +0000 Subject: [PATCH] Memory leak. * src/reader.c (reader): Free grammar. --- ChangeLog | 6 ++++++ src/reader.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index afca4bb9..37faad28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-29 Akim Demaille + + Memory leak. + + * src/reader.c (reader): Free grammar. + 2001-12-29 Akim Demaille Memory leak. diff --git a/src/reader.c b/src/reader.c index d76bd6fe..93bbe827 100644 --- a/src/reader.c +++ b/src/reader.c @@ -1867,4 +1867,7 @@ reader (void) /* Convert the grammar into the format described in gram.h. */ packgram (); + + /* The grammar as a symbol_list is no longer needed. */ + LIST_FREE (symbol_list, grammar); } -- 2.45.2