We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267f8af commit 86d9f15Copy full SHA for 86d9f15
1 file changed
tools/server/server-context.cpp
@@ -711,18 +711,18 @@ struct server_context_impl {
711
void destroy() {
712
llama_init.reset();
713
714
- ctx = nullptr;
715
- model = nullptr;
716
-
717
- mtmd_free(mctx);
718
- mctx = nullptr;
719
720
for (server_slot & slot : slots) {
721
if (slot.can_speculate()) {
722
slot.spec.reset();
723
}
724
725
+ ctx = nullptr;
+ model = nullptr;
+
+ mtmd_free(mctx);
+ mctx = nullptr;
726
llama_batch_free(batch);
727
728
0 commit comments