From 9581b8cf85a48f74160a39c1e202737cab00ac3e Mon Sep 17 00:00:00 2001 From: Paul Tsochantaris Date: Mon, 29 Jan 2024 22:18:35 +0000 Subject: [PATCH] Fixed the fix of the fix --- ggml-alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml-alloc.c b/ggml-alloc.c index eb4981bbf..f9be6e1cb 100644 --- a/ggml-alloc.c +++ b/ggml-alloc.c @@ -846,7 +846,7 @@ ggml_backend_buffer_t ggml_backend_alloc_ctx_tensors_from_buft(struct ggml_conte for (size_t i = 0; i < n_buffers; i++) { ggml_backend_buffer_free(buffers[i]); } - free(*buffers); + free(buffers); return NULL; } @@ -883,7 +883,7 @@ ggml_backend_buffer_t ggml_backend_alloc_ctx_tensors_from_buft(struct ggml_conte } else { buffer = ggml_backend_multi_buffer_alloc_buffer(buffers, n_buffers); } - free(*buffers); + free(buffers); return buffer; }