From 21e1e2c35e3f91454a2ef9911bc03a8b91cec097 Mon Sep 17 00:00:00 2001 From: trevor_hansen Date: Mon, 10 May 2010 13:26:58 +0000 Subject: [PATCH] * 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 --- src/parser/CVC.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } ; -- 2.47.3