From fc8b53b3eda32db826100220232cdaa2062e5302 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 22 Sep 2026 16:21:13 +0300 Subject: [PATCH] cont : fix conflict --- ggml/src/ggml-rpc/ggml-rpc.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ggml/src/ggml-rpc/ggml-rpc.cpp b/ggml/src/ggml-rpc/ggml-rpc.cpp index a56cd21fbb..ba26e04e68 100644 --- a/ggml/src/ggml-rpc/ggml-rpc.cpp +++ b/ggml/src/ggml-rpc/ggml-rpc.cpp @@ -1465,8 +1465,10 @@ bool rpc_server::free_buffer(const rpc_msg_free_buffer_req & request) { } // Discard all cached graphs to avoid use-after-free in graph_recompute, // since their nodes may hold pointers to the buffer being freed. - for (auto & sg : stored_graphs) { - sg.graph = nullptr; + for (auto & sgs : stored_graphs) { + for (auto & sg : sgs) { + sg.second.graph = nullptr; + } } ggml_backend_buffer_free(buffer); buffers.erase(buffer);