Skip to content

Commit 7b6eff6

Browse files
committed
fix user-after-free in smt_ctx test
1 parent f59ff7c commit 7b6eff6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/smt_context.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ void tst_smt_context()
2121
app_ref c1(m.mk_const(symbol("c"), m.mk_bool_sort()), m);
2222
app_ref na1(m.mk_not(a1), m);
2323
ctx.assert_expr(na1);
24-
ctx.assert_expr(m.mk_or(c1.get(), b1.get()));
24+
25+
app_ref b_or_c(m.mk_or(c1.get(), b1.get()), m);
26+
ctx.assert_expr(b_or_c);
2527

2628
{
2729
app_ref nc(m.mk_not(c1), m);

0 commit comments

Comments
 (0)