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:
parent
a8095187d8
commit
eb550592e4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue