From: Brandon Potter Date: Thu, 23 Feb 2017 18:27:38 +0000 (-0500) Subject: base: fix small memory leak in the ELF loader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4c4b4188d9d4add4ff3f2e50dd7acd1e109067a;p=gem5.git base: fix small memory leak in the ELF loader --- diff --git a/src/base/loader/elf_object.cc b/src/base/loader/elf_object.cc index df9134e9e..fe43a7f01 100644 --- a/src/base/loader/elf_object.cc +++ b/src/base/loader/elf_object.cc @@ -545,6 +545,8 @@ ElfObject::getSections() sectionNames.insert(elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name)); section = elf_getscn(elf, ++sec_idx); } // while sections + + elf_end(elf); } bool