[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 8 08:38:55 PDT 2025


=?utf-8?q?DonĂ¡t?= Nagy <donat.nagy at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/147542 at github.com>


================
@@ -3324,7 +3298,7 @@ void MallocChecker::checkUseZeroAllocated(SymbolRef Sym, CheckerContext &C,
 bool MallocChecker::checkDoubleDelete(SymbolRef Sym, CheckerContext &C) const {
 
   if (isReleased(Sym, C)) {
-    HandleDoubleDelete(C, Sym);
+    HandleDoubleFree(C, SourceRange(), /*Released=*/true, Sym, nullptr);
----------------
steakhal wrote:

Can you use named param passing for the `nullptr`?

https://github.com/llvm/llvm-project/pull/147542


More information about the cfe-commits mailing list