embedding: free the batch after execution

This commit is contained in:
dm4 2024-05-15 17:14:44 +08:00
parent 583fd6b000
commit 518fbc1f74

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();