summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog4
-rw-r--r--src/readelf.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 07811773..a641d333 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2013-03-19 Mark Wielaard <[email protected]>
+
+ * readelf.c (print_gdb_index_section): Free format_dwarf_addr results.
+
2013-03-18 Mark Wielaard <[email protected]>
* readelf.c (print_gdb_index_section): Accept version 8.
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++;
}