[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)
Donát Nagy via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 26 10:25:51 PDT 2025
================
@@ -3194,7 +3480,6 @@ void MallocChecker::checkEscapeOnReturn(const ReturnStmt *S,
if (!Sym)
// If we are returning a field of the allocated struct or an array element,
// the callee could still free the memory.
- // TODO: This logic should be a part of generic symbol escape callback.
----------------
NagyDonat wrote:
Is this just a random obsolete TODO, or is it fixed by the this PR? (No action excepted, just curious.)
https://github.com/llvm/llvm-project/pull/152751
More information about the cfe-commits
mailing list