From: Tim King Date: Thu, 24 Mar 2016 21:58:13 +0000 (-0700) Subject: Deleting allocated NodeVecs in ITESimplifier. X-Git-Tag: cvc5-1.0.0~6049^2~86^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df2781c86c2c546e72a8f6204c98e59387229420;p=cvc5.git Deleting allocated NodeVecs in ITESimplifier. --- diff --git a/src/theory/ite_utilities.cpp b/src/theory/ite_utilities.cpp index 2791a9555..e5c56a2a4 100644 --- a/src/theory/ite_utilities.cpp +++ b/src/theory/ite_utilities.cpp @@ -657,6 +657,7 @@ ITESimplifier::NodeVec* ITESimplifier::computeConstantLeaves(TNode ite){ // special case 2 constant children if(thenB.isConst() && elseB.isConst()){ NodeVec* pair = new NodeVec(2); + d_allocatedConstantLeaves.push_back(pair); (*pair)[0] = std::min(thenB, elseB); (*pair)[1] = std::max(thenB, elseB); d_constantLeaves[ite] = pair; @@ -694,6 +695,7 @@ ITESimplifier::NodeVec* ITESimplifier::computeConstantLeaves(TNode ite){ } NodeVec* both = new NodeVec(defChildren->size()+maybeChildren->size()); + d_allocatedConstantLeaves.push_back(both); NodeVec::iterator newEnd; newEnd = std::set_union(defChildren->begin(), defChildren->end(), maybeChildren->begin(), maybeChildren->end(),