[cfe-commits] r111217 - /cfe/trunk/lib/Checker/MallocChecker.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Mon Aug 16 17:36:37 PDT 2010
Author: zhongxingxu
Date: Mon Aug 16 19:36:37 2010
New Revision: 111217
URL: http://llvm.org/viewvc/llvm-project?rev=111217&view=rev
Log:
Generate a node instead of a sink. A leak is not a fatal error.
Modified:
cfe/trunk/lib/Checker/MallocChecker.cpp
Modified: cfe/trunk/lib/Checker/MallocChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/MallocChecker.cpp?rev=111217&r1=111216&r2=111217&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/MallocChecker.cpp (original)
+++ cfe/trunk/lib/Checker/MallocChecker.cpp Mon Aug 16 19:36:37 2010
@@ -571,7 +571,7 @@
for (RegionStateTy::iterator I = RS.begin(), E = RS.end(); I != E; ++I) {
if (SymReaper.isDead(I->first)) {
if (I->second.isAllocated()) {
- if (ExplodedNode *N = C.GenerateSink()) {
+ if (ExplodedNode *N = C.GenerateNode()) {
if (!BT_Leak)
BT_Leak = new BuiltinBug("Memory leak",
"Allocated memory never released. Potential memory leak.");
More information about the cfe-commits
mailing list