]> granicus.if.org Git - clang/commitdiff
[Analyzer] Fix for the memory leak: fix typo in if-statement.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Tue, 24 Oct 2017 01:09:43 +0000 (01:09 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Tue, 24 Oct 2017 01:09:43 +0000 (01:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316403 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/AnalysisDeclContext.cpp

index 2171194edc16abcc01bd0ff559d2f54b7bd770f0..4408a0e0e41301bd04779f1c7acd6ed1258c8f42 100644 (file)
@@ -604,7 +604,7 @@ AnalysisDeclContext::~AnalysisDeclContext() {
 }
 
 AnalysisDeclContextManager::~AnalysisDeclContextManager() {
-  if (!BdyFrm)
+  if (BdyFrm)
     delete BdyFrm;
 }