Skip to content

Commit

Permalink
test-barrier: release threadpool before releasing the context
Browse files Browse the repository at this point in the history
fixes use-after-free detected by gcc thread-sanitizer on x86-64
for some reason llvm sanitizer is not detecting this issue.
  • Loading branch information
max-krasnyansky committed Sep 16, 2024
1 parent a809518 commit eb55059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-barrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit eb55059

Please sign in to comment.