Fix the memory leak pointed out in https://reviews.llvm.org/D70412.
And a second one due to double-allocation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
openmp/tools/archer/ompt-tsan.cpp | ||
---|---|---|
864–865 | Why do we need tsan_flags globally? It's again deleted further below, you can just put it onto the stack. |
openmp/tools/archer/ompt-tsan.cpp | ||
---|---|---|
864–865 | Why do we need to new this? Even though not really critical, it'll be leaked in all the error cases below. It should be easier to do the following: TsanFlags tsan_flags(options); |
Why do we need tsan_flags globally? It's again deleted further below, you can just put it onto the stack.