3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00

fix mem leak in quantifier_info::insert_qinfo on timeout

This commit is contained in:
Nuno Lopes 2016-04-19 02:17:12 -07:00
parent b512212d41
commit 417c80edbc
2 changed files with 4 additions and 8 deletions

View file

@ -226,9 +226,7 @@ public:
}
~scoped_ptr() {
if (m_ptr) {
dealloc(m_ptr);
}
dealloc(m_ptr);
}
T * operator->() const {
@ -253,9 +251,7 @@ public:
scoped_ptr & operator=(T * n) {
if (m_ptr != n) {
if (m_ptr) {
dealloc(m_ptr);
}
dealloc(m_ptr);
m_ptr = n;
}
return *this;