diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2016-11-04 16:28:20 -0500 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2016-11-04 16:28:20 -0500 |
commit | 60cd271c46e7b250e3799f1c3b1fc20015723999 (patch) | |
tree | 82419517f1730d91ab0d5f5fa614fd4a282a8910 /src/theory/quantifiers/anti_skolem.cpp | |
parent | 35f213b0da145bbfc58b117e0b34a819f2bff4a4 (diff) |
Fix a few more minor memory leaks.
Diffstat (limited to 'src/theory/quantifiers/anti_skolem.cpp')
-rw-r--r-- | src/theory/quantifiers/anti_skolem.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/theory/quantifiers/anti_skolem.cpp b/src/theory/quantifiers/anti_skolem.cpp index 9ccba38cd..908aeecfd 100644 --- a/src/theory/quantifiers/anti_skolem.cpp +++ b/src/theory/quantifiers/anti_skolem.cpp @@ -9,7 +9,7 @@ ** All rights reserved. See the file COPYING in the top-level source ** directory for licensing information.\endverbatim ** - ** \brief Implementation of anti-skolemization + ** \brief Implementation of anti-skolemization, e.g.: ** ( forall x. P[ f( x ) ] ^ forall x. Q[ f( x ) ] ) => forall x. exists y. ( P[ y ] ^ Q[ y ] ) **/ @@ -75,6 +75,15 @@ bool QuantAntiSkolem::CDSkQuantCache::add( context::Context* c, std::vector< Nod } } +QuantAntiSkolem::CDSkQuantCache::~CDSkQuantCache() { + for(std::map< Node, CDSkQuantCache* >::iterator i = d_data.begin(), iend = d_data.end(); + i != iend; ++i){ + CDSkQuantCache* current = (*i).second; + Assert(current != NULL); + delete current; + } +} + QuantAntiSkolem::QuantAntiSkolem(QuantifiersEngine* qe) : QuantifiersModule(qe) { d_sqc = new CDSkQuantCache(qe->getUserContext()); |