r316403 - [Analyzer] Fix for the memory leak: fix typo in if-statement.
George Karpenkov via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 23 18:09:43 PDT 2017
Author: george.karpenkov
Date: Mon Oct 23 18:09:43 2017
New Revision: 316403
URL: http://llvm.org/viewvc/llvm-project?rev=316403&view=rev
Log:
[Analyzer] Fix for the memory leak: fix typo in if-statement.
Modified:
cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp
Modified: cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp?rev=316403&r1=316402&r2=316403&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp (original)
+++ cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp Mon Oct 23 18:09:43 2017
@@ -604,7 +604,7 @@ AnalysisDeclContext::~AnalysisDeclContex
}
AnalysisDeclContextManager::~AnalysisDeclContextManager() {
- if (!BdyFrm)
+ if (BdyFrm)
delete BdyFrm;
}
More information about the cfe-commits
mailing list