mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 21:05:51 +00:00
Fix a leak I noticed while reviewing the accelerator table changes. Passes
lldb testsuite. rdar://10652330 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3c7faae346
commit
7eabae3f50
@ -51,6 +51,11 @@ DwarfAccelTable::DwarfAccelTable(std::vector<DwarfAccelTable::Atom> &atomList) :
|
||||
DwarfAccelTable::~DwarfAccelTable() {
|
||||
for (size_t i = 0, e = Data.size(); i < e; ++i)
|
||||
delete Data[i];
|
||||
for (StringMap<DataArray>::iterator
|
||||
EI = Entries.begin(), EE = Entries.end(); EI != EE; ++EI)
|
||||
for (DataArray::iterator DI = (*EI).second.begin(),
|
||||
DE = (*EI).second.end(); DI != DE; ++DI)
|
||||
delete (*DI);
|
||||
}
|
||||
|
||||
void DwarfAccelTable::AddName(StringRef Name, DIE* die, char Flags) {
|
||||
|
Loading…
Reference in New Issue
Block a user