]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
embedding : free the batch after execution (#7297)
authordm4 <redacted>
Wed, 15 May 2024 12:01:12 +0000 (20:01 +0800)
committerGitHub <redacted>
Wed, 15 May 2024 12:01:12 +0000 (15:01 +0300)
examples/embedding/embedding.cpp

index c85a2da53d129fd6402f433e2a7623c4bd31a4dd..0c921ed69badb7377539b1ed17a4afc62e5d8c0a 100644 (file)
@@ -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();