diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/elftoolchain/addr2line/addr2line.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/elftoolchain/addr2line/addr2line.c b/contrib/elftoolchain/addr2line/addr2line.c index 3c5f4989bdde..0d575c14cbcf 100644 --- a/contrib/elftoolchain/addr2line/addr2line.c +++ b/contrib/elftoolchain/addr2line/addr2line.c @@ -491,6 +491,7 @@ check_labels(Dwarf_Debug dbg, Dwarf_Die die, Dwarf_Unsigned addr, if (dwarf_tag(prev_die, &tag, &de) != DW_DLV_OK) { warnx("dwarf_tag failed: %s", dwarf_errmsg(de)); + free(labels); return DW_DLV_ERROR; } if (tag == DW_TAG_label) { |