[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)
Ivan Murashko via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 15 02:44:26 PDT 2025
ivanmurashko wrote:
> clang-tidy: False positive potential memory leak warning with aggregate initialization of unique_ptr members #153300
> > I am sorry, looks like I found another regression:
> > ...
> > With your patch applied `raw` leak is not reported, however current CSA finds it: https://godbolt.org/z/569x11e7a.
>
> Thank you very much for the test case. I have to figure out the reason and fix it
That one was quite complicated to fix but I did in my last commit (12)
https://github.com/llvm/llvm-project/pull/152751
More information about the cfe-commits
mailing list