Fix an et-forest memory leak. Patch by Daniel Berlin.
llvm-svn: 26763
This commit is contained in:
parent
5271a1f9b5
commit
6d4a221d80
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue