summaryrefslogtreecommitdiff
path: root/examples/embedding/embedding.cpp
diff options
context:
space:
mode:
authordm4 <sunrisedm4@gmail.com>2024-05-15 20:01:12 +0800
committerGitHub <noreply@github.com>2024-05-15 15:01:12 +0300
commitea3b0590ee33d3573eb8ef76f88cc60f36d2a38d (patch)
tree8cc133759fca75f36f1aa170c14e8747d59e5e51 /examples/embedding/embedding.cpp
parent29499bb59383c2a8c5d557a90abb08b696cef7f6 (diff)
embedding : free the batch after execution (#7297)
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();