fix(library/tactic/rewrite_tactic.cpp): memory leak
This commit is contained in:
parent
3d8586088b
commit
9649d540c0
1 changed files with 2 additions and 2 deletions
|
@ -595,8 +595,8 @@ class rewrite_fn {
|
|||
|
||||
optional<expr> reduce(expr const & e, list<name> const & to_unfold) {
|
||||
bool unfolded = !to_unfold;
|
||||
auto tc = new type_checker(m_env, m_ngen.mk_child(),
|
||||
std::unique_ptr<converter>(new rewriter_converter(m_env, to_unfold, unfolded)));
|
||||
type_checker_ptr tc(new type_checker(m_env, m_ngen.mk_child(),
|
||||
std::unique_ptr<converter>(new rewriter_converter(m_env, to_unfold, unfolded))));
|
||||
constraint_seq cs;
|
||||
bool use_eta = true;
|
||||
expr r = normalize(*tc, e, cs, use_eta);
|
||||
|
|
Loading…
Reference in a new issue