From 985e41a01f3a8d12a348c35a2aa3f53d471f7cf5 Mon Sep 17 00:00:00 2001 From: zhangcan42 Date: Mon, 4 Nov 2024 07:33:21 +0000 Subject: [PATCH] add free counts Signed-off-by: zhangcan42 --- src/readelf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/readelf.c b/src/readelf.c index 0e0b05c4..77fcd6d6 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -3248,6 +3248,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; } -- Gitee