fix(library/num): fix memory leak

This commit is contained in:
Daniel Selsam 2015-12-01 10:11:05 -08:00 committed by Leonardo de Moura
parent acb5b969c6
commit aac50873fe

View file

@ -44,7 +44,7 @@ optional<expr> is_bit1(expr const & e) {
}
optional<expr> is_neg(expr const & e) {
if (!is_const_app(e, *new name("neg"), 3))
if (!is_const_app(e, get_neg_name(), 3))
return none_expr();
return some_expr(app_arg(e));
}