From: trevor_hansen Date: Mon, 10 May 2010 13:26:58 +0000 (+0000) Subject: * Fix the use of an invalidated iterator in the CVC parser. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=21e1e2c35e3f91454a2ef9911bc03a8b91cec097;p=francis%2Fstp.git * Fix the use of an invalidated iterator in the CVC parser. * Fix a small memory leak in the CVC parser. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@756 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/parser/CVC.y b/src/parser/CVC.y index b2367d3..b451936 100644 --- a/src/parser/CVC.y +++ b/src/parser/CVC.y @@ -321,9 +321,9 @@ VarDecl : FORM_IDs ':' Type i->SetIndexWidth($5->GetIndexWidth()); parserInterface->letMgr.LetExprMgr(*i,*$5); + } delete $5; delete $1; - } } | FORM_IDs ':' Type '=' Formula { @@ -340,8 +340,9 @@ VarDecl : FORM_IDs ':' Type i->SetIndexWidth($5->GetIndexWidth()); parserInterface->letMgr.LetExprMgr(*i,*$5); - delete $5; } + delete $5; + delete $1; } ;