From 9f1735d6ac75bdf3258a345f00653b637a786b3d 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316403 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/AnalysisDeclContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/AnalysisDeclContext.cpp b/lib/Analysis/AnalysisDeclContext.cpp index 2171194edc..4408a0e0e4 100644 --- a/lib/Analysis/AnalysisDeclContext.cpp +++ b/lib/Analysis/AnalysisDeclContext.cpp @@ -604,7 +604,7 @@ AnalysisDeclContext::~AnalysisDeclContext() { } AnalysisDeclContextManager::~AnalysisDeclContextManager() { - if (!BdyFrm) + if (BdyFrm) delete BdyFrm; } -- 2.40.0