From 0501f97cef778f7ebdb0441a359f62dbd93ca87d Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Tue, 24 Oct 2017 01:09:43 +0000 Subject: [PATCH] [Analyzer] Fix for the memory leak: fix typo in if-statement. llvm-svn: 316403 --- clang/lib/Analysis/AnalysisDeclContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Analysis/AnalysisDeclContext.cpp b/clang/lib/Analysis/AnalysisDeclContext.cpp index 2171194..4408a0e 100644 --- a/clang/lib/Analysis/AnalysisDeclContext.cpp +++ b/clang/lib/Analysis/AnalysisDeclContext.cpp @@ -604,7 +604,7 @@ AnalysisDeclContext::~AnalysisDeclContext() { } AnalysisDeclContextManager::~AnalysisDeclContextManager() { - if (!BdyFrm) + if (BdyFrm) delete BdyFrm; } -- 2.7.4