diff options
author | dm4 <sunrisedm4@gmail.com> | 2024-05-15 20:01:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 15:01:12 +0300 |
commit | ea3b0590ee33d3573eb8ef76f88cc60f36d2a38d (patch) | |
tree | 8cc133759fca75f36f1aa170c14e8747d59e5e51 | |
parent | 29499bb59383c2a8c5d557a90abb08b696cef7f6 (diff) |
embedding : free the batch after execution (#7297)
-rw-r--r-- | examples/embedding/embedding.cpp | 1 |
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(); |