From bb636274d41596eac607368e4545c5d67e14816a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 14 Mar 2006 19:41:45 +0000 Subject: [PATCH] Fix an et-forest memory leak. Patch by Daniel Berlin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26763 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Dominators.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 951da55589f..24b3e87cafd 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -682,6 +682,7 @@ void ETNode::setFather(ETNode *NewFather) { rightmost->MinOccurrence = NewFatherOcc->MinOccurrence; } + delete ParentOcc; ParentOcc = NewFatherOcc; // Update *our* tree