]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix a leak introduced in r1184.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 5 Mar 2011 03:14:50 +0000 (03:14 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 5 Mar 2011 03:14:50 +0000 (03:14 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1187 e59a4935-1847-0410-ae03-e826735625c1

src/AST/NodeFactory/HashingNodeFactory.cpp

index 198b1fa6cbea9a77f17983fec3441e252b3f1485..b1dda28e6699608fe2df1f212d0dc06b32a39131 100644 (file)
@@ -30,7 +30,10 @@ BEEV::ASTNode HashingNodeFactory::CreateNode(const Kind kind,        const BEEV::ASTVec
        // So you can't trust the hashiing node factory even to return nodes of the same kind that
        // you ask for.
        if (kind == BEEV::NOT && children[0].GetKind() == BEEV::NOT)
-         return children[0][0];
+         {
+               delete n_ptr;
+               return children[0][0];
+         }
 
        // insert all of children at end of new_children.
        ASTNode n(bm.CreateInteriorNode(kind, n_ptr, children));