tool/ex/tests: consistently free ctx, then model (#18168)

This commit is contained in:
Johannes Gäßler 2025-12-22 11:00:37 +01:00 committed by GitHub
parent e1f15b454f
commit 147a521636
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 48 additions and 19 deletions

View file

@ -300,8 +300,8 @@ int main(int argc, char **argv) {
fprintf(stderr, "%s : tokens written to '%s'\n", __func__, (fname_text + ".tokcpp").c_str());
}
llama_model_free(model);
llama_free(ctx);
llama_model_free(model);
llama_backend_free();