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:
parent
b512212d41
commit
417c80edbc
2 changed files with 4 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue