Skip to content

Commit 43c35e4

Browse files
Complete memory leak fix: add dealloc(m_imp) to lar_solver destructor
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
1 parent 3a1a8a9 commit 43c35e4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/math/lp/lar_solver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ namespace lp {
232232
for (auto t : m_imp->m_terms)
233233
delete t;
234234
m_imp->m_var_register.clear();
235+
dealloc(m_imp);
235236
}
236237

237238
void lar_solver::clear_columns_with_changed_bounds() { m_imp->m_columns_with_changed_bounds.reset(); }

0 commit comments

Comments
 (0)