mirror of
https://github.com/Z3Prover/z3
synced 2025-08-03 09:50:23 +00:00
Fix memory smash on double free of clauses
Signed-off-by: nikolajbjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a96a9a076d
commit
0d9f949ab2
6 changed files with 32 additions and 1 deletions
|
@ -174,7 +174,7 @@ namespace sat {
|
|||
}
|
||||
|
||||
void clause_allocator::del_clause(clause * cls) {
|
||||
TRACE("sat", tout << "delete: " << cls->id() << " " << cls << "\n";);
|
||||
TRACE("sat", tout << "delete: " << cls->id() << " " << cls << " " << *cls << "\n";);
|
||||
m_id_gen.recycle(cls->id());
|
||||
size_t size = clause::get_obj_size(cls->m_capacity);
|
||||
#ifdef _AMD64_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue