diff options
author | Maks Mishin <[email protected]> | 2024-07-02 00:05:34 +0300 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2024-07-02 13:28:30 +0200 |
commit | 3c57968144f27a6885442ccd1f07864823018aeb (patch) | |
tree | 7306555bcc44601290157e6f2cc1d19575fa63fe /src/readelf.c | |
parent | f2bfda81b8dafcaa1240a7df0bdd2d5280e4fb8b (diff) |
readelf: Fix memory leak in print_hash_info()
Signed-off-by: Maks Mishin <[email protected]>
Diffstat (limited to 'src/readelf.c')
-rw-r--r-- | src/readelf.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |