summaryrefslogtreecommitdiff
path: root/examples/embedding/embedding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/embedding/embedding.cpp')
-rw-r--r--examples/embedding/embedding.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/embedding/embedding.cpp b/examples/embedding/embedding.cpp
index c85a2da5..0c921ed6 100644
--- a/examples/embedding/embedding.cpp
+++ b/examples/embedding/embedding.cpp
@@ -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();