base: fix small memory leak in the ELF loader
This commit is contained in:
parent
41bc2886de
commit
a4c4b4188d
|
@ -545,6 +545,8 @@ ElfObject::getSections()
|
||||||
sectionNames.insert(elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name));
|
sectionNames.insert(elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name));
|
||||||
section = elf_getscn(elf, ++sec_idx);
|
section = elf_getscn(elf, ++sec_idx);
|
||||||
} // while sections
|
} // while sections
|
||||||
|
|
||||||
|
elf_end(elf);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Reference in a new issue