embedding : free the batch after execution (#7297)

This commit is contained in:
dm4 2024-05-15 20:01:12 +08:00 committed by teleprint-me
parent 4aae3a52f3
commit f3e8fc196f
No known key found for this signature in database
GPG key ID: B0D11345E65C4D48

View file

@ -211,6 +211,7 @@ int main(int argc, char ** argv) {
// clean up
llama_print_timings(ctx);
llama_batch_free(batch);
llama_free(ctx);
llama_free_model(model);
llama_backend_free();