Signed-off-by: Maks Mishin <[email protected]> --- src/readelf.c | 1 + 1 file changed, 1 insertion(+)
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;
}
--
2.30.2
