Skip to content

Commit ea3b059

Browse files
authored
embedding : free the batch after execution (#7297)
1 parent 29499bb commit ea3b059

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/embedding/embedding.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ int main(int argc, char ** argv) {
211211

212212
// clean up
213213
llama_print_timings(ctx);
214+
llama_batch_free(batch);
214215
llama_free(ctx);
215216
llama_free_model(model);
216217
llama_backend_free();

0 commit comments

Comments
 (0)