embedding : free the batch after execution (#7297)

This commit is contained in:
dm4 2024-05-15 20:01:12 +08:00 committed by GitHub
parent 29499bb593
commit ea3b0590ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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