From 19a820fceda5d8010a1c7563d12e8f7476e3bff9 Mon Sep 17 00:00:00 2001 From: Gilad S Date: Tue, 15 Oct 2024 01:28:44 +0300 Subject: [PATCH] fix: unused var --- ggml/src/ggml.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index b6ef146ba..a2a82fd5c 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -19577,8 +19577,7 @@ void ggml_threadpool_free(struct ggml_threadpool* threadpool) { ggml_cond_destroy(&threadpool->cond); #endif // GGML_USE_OPENMP - const size_t workers_size = sizeof(struct ggml_compute_state) * n_threads; - GGML_ALIGNED_FREE(threadpool->workers, workers_size); + GGML_ALIGNED_FREE(threadpool->workers, sizeof(struct ggml_compute_state) * n_threads); GGML_ALIGNED_FREE(threadpool, sizeof(struct ggml_threadpool)); }