addr2line: fix allocation leak in error path
CID: 1437677 Reported by: Coverity Scan Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
b946eede04
commit
67b94fc58e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user