From 567a518b4a0f61126fbcc52357f929fb70b5e6da Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 8 Feb 2008 11:34:10 +0000 Subject: [PATCH] v4 preprocessor: fixed minor memory leak git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1698 ac1d8469-bf42-47a9-8791-bf33cf982152 --- preprocessor/ParsingDriver.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/preprocessor/ParsingDriver.cc b/preprocessor/ParsingDriver.cc index ba145fd36..820408dc8 100644 --- a/preprocessor/ParsingDriver.cc +++ b/preprocessor/ParsingDriver.cc @@ -75,6 +75,9 @@ ParsingDriver::parse(istream &in) Dynare::parser parser(*this); parser.parse(); + if (location.begin.filename) + delete location.begin.filename; + delete lexer; delete tmp_symbol_table;