From a4c4b4188d9d4add4ff3f2e50dd7acd1e109067a Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Thu, 23 Feb 2017 13:27:38 -0500 Subject: [PATCH] base: fix small memory leak in the ELF loader --- src/base/loader/elf_object.cc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2