diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 4a947fbe6..94adbac07 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -672,10 +672,11 @@ struct server_context { } // Clear any sampling context - for (server_slot & slot : slots) { - if (slot.ctx_sampling != nullptr) - llama_sampling_free(slot.ctx_sampling); - } + for (server_slot & slot : slots) { + if (slot.ctx_sampling != nullptr) { + llama_sampling_free(slot.ctx_sampling); + } + } llama_batch_free(batch); }