diff --git a/src/kits/debugger/elf/ElfFile.cpp b/src/kits/debugger/elf/ElfFile.cpp index 10059cebea..9cbe381214 100644 --- a/src/kits/debugger/elf/ElfFile.cpp +++ b/src/kits/debugger/elf/ElfFile.cpp @@ -476,7 +476,7 @@ ElfFile::_LoadFile(const char* fileName) Get(sectionHeader->sh_flags), Get(sectionHeader->sh_link)); if (section == NULL) return B_NO_MEMORY; - if (!fSections.AddItem(section, i)) { + if (!fSections.AddItem(section)) { delete section; return B_NO_MEMORY; }