mirror of
https://github.com/Z3Prover/z3
synced 2026-07-04 14:26:10 +00:00
fix: fix memory leaks detected by ASan in test code
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
e4b85d234e
commit
7d19851c2f
2 changed files with 3 additions and 0 deletions
|
|
@ -111,6 +111,7 @@ namespace datalog {
|
||||||
i5->deallocate();
|
i5->deallocate();
|
||||||
dealloc(join1);
|
dealloc(join1);
|
||||||
dealloc(proj1);
|
dealloc(proj1);
|
||||||
|
dealloc(proj2);
|
||||||
dealloc(ren1);
|
dealloc(ren1);
|
||||||
dealloc(union1);
|
dealloc(union1);
|
||||||
dealloc(filterId1);
|
dealloc(filterId1);
|
||||||
|
|
@ -281,6 +282,7 @@ namespace datalog {
|
||||||
i5->deallocate();
|
i5->deallocate();
|
||||||
dealloc(join1);
|
dealloc(join1);
|
||||||
dealloc(proj1);
|
dealloc(proj1);
|
||||||
|
dealloc(proj2);
|
||||||
dealloc(ren1);
|
dealloc(ren1);
|
||||||
dealloc(union1);
|
dealloc(union1);
|
||||||
dealloc(filterId1);
|
dealloc(filterId1);
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,7 @@ static void test_skolemize_bug() {
|
||||||
Z3_ast f3 = Z3_simplify(ctx, f2);
|
Z3_ast f3 = Z3_simplify(ctx, f2);
|
||||||
std::cout << Z3_ast_to_string(ctx, f3) << "\n";
|
std::cout << Z3_ast_to_string(ctx, f3) << "\n";
|
||||||
|
|
||||||
|
Z3_del_context(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue