Skip to content

Commit

Permalink
test: c api: Fix memory leaks in capi_issue11069 (cvc5#11116)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-larraz authored Aug 2, 2024
1 parent 04190ae commit 7ee7051
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/api/c/issue11069.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
* Top contributors (to current version):
* Andrew Reynolds
* Andrew Reynolds, Daniel Larraz
*
* This file is part of the cvc5 project.
*
Expand Down Expand Up @@ -60,5 +60,11 @@ int main()
result = cvc5_check_sat(slv);
printf("Result: %s\n", cvc5_result_to_string(result));
assert(cvc5_result_is_unsat(result));

cvc5_parser_delete(parser);
cvc5_symbol_manager_delete(sm);
cvc5_delete(slv);
cvc5_term_manager_delete(tm);

return 0;
}

0 comments on commit 7ee7051

Please sign in to comment.