embedding: free the batch after execution
This commit is contained in:
parent
583fd6b000
commit
518fbc1f74
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue