diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-14 19:41:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-14 19:41:45 +0000 |
commit | bb636274d41596eac607368e4545c5d67e14816a (patch) | |
tree | ec72d62a375b57a9f3781498b55c0215826ea106 | |
parent | cbd3cdd2397b31a34c8af403811d06aa94149b40 (diff) |
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
-rw-r--r-- | lib/VMCore/Dominators.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 951da55589..24b3e87caf 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 |