Skip to content

Commit a7496bf

Browse files
max-krasnyanskyfmz
authored andcommitted
threadpool: don't forget to free workers state when omp is enabled
1 parent 93f170d commit a7496bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ggml/src/ggml.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18877,12 +18877,11 @@ void ggml_release_threadpool(struct ggml_compute_threadpool* threadpool) {
1887718877
UNUSED(rc);
1887818878
}
1887918879

18880-
GGML_ALIGNED_FREE(workers);
18881-
1888218880
ggml_mutex_destroy(&threadpool->mutex);
1888318881
ggml_cond_destroy(&threadpool->cond);
1888418882
#endif // GGML_USE_OPENMP
1888518883

18884+
GGML_ALIGNED_FREE(threadpool->workers);
1888618885
GGML_ALIGNED_FREE(threadpool);
1888718886
}
1888818887

0 commit comments

Comments
 (0)