Skip to content

Commit 5434f3e

Browse files
fix #4105
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent f119398 commit 5434f3e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/math/polynomial/polynomial.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,6 +2653,9 @@ namespace polynomial {
26532653
m_tmp_linear_ms.push_back(mk_unit());
26542654
}
26552655
polynomial * p = mk_polynomial(m_tmp_linear_as.size(), m_tmp_linear_as.c_ptr(), m_tmp_linear_ms.c_ptr());
2656+
for (auto& a : m_tmp_linear_as) {
2657+
m_manager.del(a);
2658+
}
26562659
m_tmp_linear_as.reset();
26572660
m_tmp_linear_ms.reset();
26582661
return p;

src/util/mpz.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@ uint64_t u64_gcd(uint64_t u, uint64_t v) {
122122
}
123123

124124

125+
125126
template<bool SYNCH>
126127
mpz_manager<SYNCH>::mpz_manager():
127128
m_allocator("mpz_manager") {
129+
128130
#ifndef _MP_GMP
129131
if (sizeof(digit_t) == sizeof(uint64_t)) {
130132
// 64-bit machine

0 commit comments

Comments
 (0)