Skip to content

Commit 96c4460

Browse files
committed
[ARM][MachineOutliner] Fix memory leak.
Fix sanitizer bots after 0e4827a
1 parent f06e656 commit 96c4460

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5668,6 +5668,7 @@ outliner::OutlinedFunction ARMBaseInstrInfo::getOutliningCandidateInfo(
56685668
} else
56695669
return outliner::OutlinedFunction();
56705670

5671+
delete Costs;
56715672
return outliner::OutlinedFunction(RepeatedSequenceLocs, SequenceSize,
56725673
NumBytesToCreateFrame, FrameID);
56735674
}

0 commit comments

Comments
 (0)