mirror of
https://github.com/Z3Prover/z3
synced 2026-04-29 15:23:37 +00:00
Merge pull request #8900 from Z3Prover/copilot/fix-memory-leak-detected
Fix memory leaks in test code detected by ASan/LSan
This commit is contained in:
commit
525c9dbb12
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