diff options
| author | Mark Wielaard <[email protected]> | 2013-03-19 11:43:49 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2013-03-19 11:45:34 +0100 |
| commit | 10cd97eecabe080a7fc39965a2b98c2f024c0ab0 (patch) | |
| tree | ff749bbe3c479cfd58fac29ca9e9127264b90f47 /src/readelf.c | |
| parent | a73fecc109e400fd9f538bf25a73ccf9cdf1d598 (diff) | |
readelf: print_gdb_index_section fix memory leak.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/readelf.c')
| -rw-r--r-- | src/readelf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/readelf.c b/src/readelf.c index 9c7880d9..1412bed3 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -7389,6 +7389,8 @@ print_gdb_index_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr, char *h = format_dwarf_addr (dwflmod, 8, high - 1, high); printf (" [%4zu] %s..%s, CU index: %5" PRId32 "\n", n, l, h, idx); + free (l); + free (h); n++; } |
