mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
fix memory leak Issue #643
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
bd187e0989
commit
19f98547f7
1 changed files with 6 additions and 1 deletions
|
@ -222,7 +222,12 @@ namespace smt {
|
|||
obj_map<enode, app *> const & get_root2value() const { return m_root2value; }
|
||||
app * get_value(enode * n) const;
|
||||
|
||||
void hide(func_decl * f) { m_hidden_ufs.insert_if_not_there(f); m_manager.inc_ref(f); }
|
||||
void hide(func_decl * f) {
|
||||
if (!m_hidden_ufs.contains(f)) {
|
||||
m_hidden_ufs.insert(f);
|
||||
m_manager.inc_ref(f);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue