mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 02:07:16 +00:00
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:
parent
cbd3cdd239
commit
bb636274d4
@ -682,6 +682,7 @@ void ETNode::setFather(ETNode *NewFather) {
|
||||
rightmost->MinOccurrence = NewFatherOcc->MinOccurrence;
|
||||
}
|
||||
|
||||
delete ParentOcc;
|
||||
ParentOcc = NewFatherOcc;
|
||||
|
||||
// Update *our* tree
|
||||
|
Loading…
Reference in New Issue
Block a user