fix: unused var

This commit is contained in:
Gilad S 2024-10-15 01:28:44 +03:00
parent fa79e0d0dd
commit 19a820fced

View file

@ -19577,8 +19577,7 @@ void ggml_threadpool_free(struct ggml_threadpool* threadpool) {
ggml_cond_destroy(&threadpool->cond); ggml_cond_destroy(&threadpool->cond);
#endif // GGML_USE_OPENMP #endif // GGML_USE_OPENMP
const size_t workers_size = sizeof(struct ggml_compute_state) * n_threads; GGML_ALIGNED_FREE(threadpool->workers, sizeof(struct ggml_compute_state) * n_threads);
GGML_ALIGNED_FREE(threadpool->workers, workers_size);
GGML_ALIGNED_FREE(threadpool, sizeof(struct ggml_threadpool)); GGML_ALIGNED_FREE(threadpool, sizeof(struct ggml_threadpool));
} }