[ARM][MachineOutliner] Fix memory leak.

Fix sanitizer bots after 0e4827aa4e
This commit is contained in:
Yvan Roux 2020-05-15 16:21:20 +02:00
parent f06e6564a1
commit 96c4460a0b
1 changed files with 1 additions and 0 deletions

View File

@ -5668,6 +5668,7 @@ outliner::OutlinedFunction ARMBaseInstrInfo::getOutliningCandidateInfo(
} else
return outliner::OutlinedFunction();
delete Costs;
return outliner::OutlinedFunction(RepeatedSequenceLocs, SequenceSize,
NumBytesToCreateFrame, FrameID);
}