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
This commit is contained in:
Chris Lattner 2006-03-14 19:41:45 +00:00
parent cbd3cdd239
commit bb636274d4

View File

@ -682,6 +682,7 @@ void ETNode::setFather(ETNode *NewFather) {
rightmost->MinOccurrence = NewFatherOcc->MinOccurrence; rightmost->MinOccurrence = NewFatherOcc->MinOccurrence;
} }
delete ParentOcc;
ParentOcc = NewFatherOcc; ParentOcc = NewFatherOcc;
// Update *our* tree // Update *our* tree