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

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 9 06:16:12 PDT 2025


================
@@ -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);
----------------
NagyDonat wrote:

Done in https://github.com/llvm/llvm-project/pull/147542/commits/ffbafe4aeabe794c198169a53c67bf2ab60057ea

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


More information about the cfe-commits mailing list