test-barrier: release threadpool before releasing the context

fixes use-after-free detected by gcc thread-sanitizer on x86-64
for some reason llvm sanitizer is not detecting this issue.
This commit is contained in:
Max Krasnyansky 2024-09-16 16:41:41 -07:00
parent a8095187d8
commit eb550592e4

View file

@ -86,8 +86,8 @@ int main(int argc, char *argv[]) {
<< "\n " << (float) nsec / (n_rounds * n_nodes) << " nsec per-node"
<< "\n";
ggml_free(ctx);
ggml_threadpool_free(threadpool);
ggml_free(ctx);
return 0;
}