forked from OSchip/llvm-project
[ARM][MachineOutliner] Fix memory leak.
Fix sanitizer bots after 0e4827aa4e
This commit is contained in:
parent
f06e6564a1
commit
96c4460a0b
|
@ -5668,6 +5668,7 @@ outliner::OutlinedFunction ARMBaseInstrInfo::getOutliningCandidateInfo(
|
|||
} else
|
||||
return outliner::OutlinedFunction();
|
||||
|
||||
delete Costs;
|
||||
return outliner::OutlinedFunction(RepeatedSequenceLocs, SequenceSize,
|
||||
NumBytesToCreateFrame, FrameID);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue