From: Georgi Gerganov Date: Sat, 13 Dec 2025 07:48:34 +0000 (+0200) Subject: speculative-simple : free batch on exit (#17985) X-Git-Tag: upstream/0.0.7446~65 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=3c6391e748d8c00c45fba033811508288580cdc7;p=pkg%2Fggml%2Fsources%2Fllama.cpp speculative-simple : free batch on exit (#17985) --- diff --git a/examples/speculative-simple/speculative-simple.cpp b/examples/speculative-simple/speculative-simple.cpp index a8e53f28..0d11d0f8 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);