mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 10:35:33 +00:00
fix exposed memory leak
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
78be471908
commit
d131aba8a9
2 changed files with 8 additions and 1 deletions
|
@ -1714,8 +1714,15 @@ ast * ast_manager::register_node_core(ast * n) {
|
|||
SASSERT(m_ast_table.contains(n));
|
||||
}
|
||||
|
||||
|
||||
n->m_id = is_decl(n) ? m_decl_id_gen.mk() : m_expr_id_gen.mk();
|
||||
|
||||
static unsigned count = 0;
|
||||
if (n->m_id == 404) {
|
||||
++count;
|
||||
//if (count == 2) SASSERT(false);
|
||||
}
|
||||
|
||||
TRACE("ast", tout << "Object " << n->m_id << " was created.\n";);
|
||||
TRACE("mk_var_bug", tout << "mk_ast: " << n->m_id << "\n";);
|
||||
// increment reference counters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue