3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

remove memory leaks in nex_creator

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-10-04 17:23:16 -07:00
parent 3e009a237f
commit efe7d132ee
2 changed files with 7 additions and 7 deletions

View file

@ -96,7 +96,7 @@ public:
void simplify_children_of_mul(vector<nex_pow> & children);
nex * clone(const nex* a) {
nex * clone(const nex* a) {
switch (a->type()) {
case expr_type::VAR: {
auto v = to_var(a);
@ -148,7 +148,10 @@ public:
delete e;
m_allocated.clear();
}
~nex_creator() {
clear();
}
unsigned size() const { return m_allocated.size(); }
nex_sum* mk_sum() {