]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix a small memory leak.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sun, 9 Jan 2011 04:05:09 +0000 (04:05 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sun, 9 Jan 2011 04:05:09 +0000 (04:05 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1059 e59a4935-1847-0410-ae03-e826735625c1

src/parser/CVC.y

index 1d20fcdaa39d703b0b34b091a59d97e4b0d95fe9..fe057bab97eb0360899162340b1fa4d51752a5dc 100644 (file)
@@ -467,10 +467,9 @@ Formula         :     '(' Formula ')'
                          
   ASTNode hi  =  parserInterface->CreateBVConst(32, $5);
   ASTNode low =  parserInterface->CreateBVConst(32, $5);
-  ASTNode * n = new ASTNode(parserInterface->nf->CreateTerm(BVEXTRACT,1,*$3,hi,low));
+  ASTNode n = parserInterface->nf->CreateTerm(BVEXTRACT,1,*$3,hi,low);
   ASTNode one = parserInterface->CreateBVConst(1,1);                   
-  ASTNode * out = new ASTNode(parserInterface->nf->CreateNode(EQ,*n,one));
-
+  ASTNode * out = new ASTNode(parserInterface->nf->CreateNode(EQ,n,one));
 
   $$ = out;
   delete $3;