From 3c6391e748d8c00c45fba033811508288580cdc7 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 13 Dec 2025 09:48:34 +0200 Subject: [PATCH] speculative-simple : free batch on exit (#17985) --- examples/speculative-simple/speculative-simple.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/speculative-simple/speculative-simple.cpp b/examples/speculative-simple/speculative-simple.cpp index a8e53f28eb..0d11d0f803 100644 --- a/examples/speculative-simple/speculative-simple.cpp +++ b/examples/speculative-simple/speculative-simple.cpp @@ -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);