From: dm4 Date: Wed, 15 May 2024 12:01:12 +0000 (+0800) Subject: embedding : free the batch after execution (#7297) X-Git-Tag: upstream/0.0.4488~1597 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ea3b0590ee33d3573eb8ef76f88cc60f36d2a38d;p=pkg%2Fggml%2Fsources%2Fllama.cpp embedding : free the batch after execution (#7297) --- 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();