]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
speculative-simple : free batch on exit (#17985)
authorGeorgi Gerganov <redacted>
Sat, 13 Dec 2025 07:48:34 +0000 (09:48 +0200)
committerGitHub <redacted>
Sat, 13 Dec 2025 07:48:34 +0000 (09:48 +0200)
examples/speculative-simple/speculative-simple.cpp

index a8e53f28eb59730c81105490442677b7cbea6129..0d11d0f8030749e612cc31662d99895ad19a31fd 100644 (file)
@@ -255,6 +255,8 @@ int main(int argc, char ** argv) {
     LOG_INF("target:\n\n");
     common_perf_print(ctx_tgt, smpl);
 
+    llama_batch_free(batch_tgt);
+
     common_sampler_free(smpl);
     common_speculative_free(spec);