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

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 9 07:35:14 PDT 2025


=?utf-8?q?Donát?= Nagy <donat.nagy at ericsson.com>,
=?utf-8?q?Donát?= Nagy <donat.nagy at ericsson.com>,
=?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>


================
@@ -412,7 +412,7 @@ class DerefClass{
 void testDoubleDeleteClassInstance() {
   DerefClass *foo = new DerefClass();
   delete foo;
-  delete foo; // newdelete-warning {{Attempt to delete released memory}}
+  delete foo; // newdelete-warning {{Attempt to free released memory}}
----------------
steakhal wrote:

Given that this is the only user-visible change of this PR, I'm not happy to see this wording change, but I'm not interested in blocking this PR. I liked the `Attempt to release already released memory` phrasing that you suggested.

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


More information about the cfe-commits mailing list