Fix an et-forest memory leak. Patch by Daniel Berlin.

llvm-svn: 26763
This commit is contained in:
Chris Lattner 2006-03-14 19:41:45 +00:00
parent 5271a1f9b5
commit 6d4a221d80
1 changed files with 1 additions and 0 deletions

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