tool/ex/tests: consistently free ctx, then model (#18168)
This commit is contained in:
parent
e1f15b454f
commit
147a521636
8 changed files with 48 additions and 19 deletions
|
|
@ -1196,6 +1196,9 @@ int main(int argc, const char ** argv) {
|
|||
|
||||
test_sampler_chain();
|
||||
|
||||
llama_free(ctx);
|
||||
llama_model_free(model);
|
||||
|
||||
fprintf(stdout, "All tests passed.\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue