From 1a179bfc4e6079079e6ab7dbc7d1ddb8c5d74d5b Mon Sep 17 00:00:00 2001 From: Pierrick Hymbert Date: Fri, 22 Mar 2024 00:38:23 +0100 Subject: [PATCH] fix loop over pointer Co-authored-by: slaren --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index f9c75cd47..f0c187f9a 100644 --- a/llama.cpp +++ b/llama.cpp @@ -3040,7 +3040,7 @@ struct llama_model_loader { if (meta) { gguf_free(meta); } - for (auto & ctx : contexts) { + for (auto * ctx : contexts) { ggml_free(ctx); } }