v4 preprocessor: fixed minor memory leak

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1698 ac1d8469-bf42-47a9-8791-bf33cf982152
issue#70
sebastien 2008-02-08 11:34:10 +00:00
parent 225e859ebe
commit aac0db2568
1 changed files with 3 additions and 0 deletions

View File

@ -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;