Skip to content

Commit

Permalink
fix #2595
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Sep 29, 2019
1 parent a424ab9 commit 98c3887
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/mk_win_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ def mk_zips():
def cp_vs_runtime(x64):
if x64:
platform = "x64"

else:
platform = "x86"
vcdir = os.environ['VCINSTALLDIR']
Expand Down
9 changes: 9 additions & 0 deletions src/math/polynomial/polynomial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2184,10 +2184,16 @@ namespace polynomial {
}

~som_buffer_vector() {
clear();
}

void clear() {
reset();
unsigned sz = m_buffers.size();
for (unsigned i = 0; i < sz; i++) {
dealloc(m_buffers[i]);
}
m_buffers.reset();
}

void set_owner(imp * owner) {
Expand Down Expand Up @@ -2372,11 +2378,14 @@ namespace polynomial {
m_polynomials.reset();
});
SASSERT(m_polynomials.empty());
m_iccp_ZpX_buffers.clear();
m_monomial_manager->dec_ref();
}

void checkpoint() {
if (!m_limit.inc()) {
m_som_buffer.reset();
m_som_buffer2.reset();
throw polynomial_exception(Z3_CANCELED_MSG);
}
}
Expand Down

0 comments on commit 98c3887

Please sign in to comment.