3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00

Fix memory leak in bv2fpa_converter

This commit is contained in:
Christoph M. Wintersteiger 2019-10-28 11:31:23 +00:00
parent 2308d8af09
commit 4faaff5b76
No known key found for this signature in database
GPG key ID: BCF6360F86294467

View file

@ -474,6 +474,8 @@ void bv2fpa_converter::convert_uf2bvuf(model_core * mc, model_core * target_mode
func_interp *fi = convert_func_interp(mc, f, f_uf);
if (fi->num_entries() > 0 || fi->get_else() != nullptr)
target_model->register_decl(f, fi);
else
dealloc(fi);
}
}