Skip to content

Commit

Permalink
Fix memory leak in bv2fpa_converter
Browse files Browse the repository at this point in the history
  • Loading branch information
wintersteiger committed Oct 28, 2019
1 parent 2308d8a commit 4faaff5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ast/fpa/bv2fpa_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 4faaff5

Please sign in to comment.