base: fix small memory leak in the ELF loader
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user