From: Maks Mishin Date: Mon, 1 Jul 2024 21:05:34 +0000 (+0300) Subject: readelf: Fix memory leak in print_hash_info() X-Git-Tag: elfutils-0.192~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c57968144f27a6885442ccd1f07864823018aeb;p=thirdparty%2Felfutils.git readelf: Fix memory leak in print_hash_info() Signed-off-by: Maks Mishin --- diff --git a/src/readelf.c b/src/readelf.c index c945b371..48035264 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -3597,6 +3597,7 @@ print_hash_info (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx, { error (0, 0, _("invalid sh_link value in section %zu"), elf_ndxscn (scn)); + free (counts); return; }