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

free memory in nex_creator during GB init

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-12-16 18:22:21 -10:00
parent 519bbc5af1
commit 580f229a16
3 changed files with 8 additions and 3 deletions

View file

@ -593,7 +593,7 @@ void nex_creator::process_map_pair(nex*e, const rational& coeff, nex_sum & sum,
}
bool e_is_old = allocated_nexs.find(e) != allocated_nexs.end();
if (!e_is_old) {
m_allocated.push_back(e);
add_to_allocated(e);
}
if (e->is_mul()) {
e->to_mul().m_coeff = coeff;