From: Michael Snyder Date: Thu, 3 Mar 2011 23:43:08 +0000 (+0000) Subject: 2011-03-03 Michael Snyder X-Git-Tag: cgen-snapshot-20110401~422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ecc1f20271e47925e0c8e4eb1452d1cea8aa992;p=external%2Fbinutils.git 2011-03-03 Michael Snyder * dwarf2.c (scan_unit_for_symbols): Stop memory leak. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cdddd21..a42fa60 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,7 @@ 2011-03-03 Michael Snyder + * dwarf2.c (scan_unit_for_symbols): Stop memory leak. + * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails. 2011-03-03 H.J. Lu diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index e5d0103..3826856 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -2148,7 +2148,7 @@ scan_unit_for_symbols (struct comp_unit *unit) { info_ptr = read_attribute (&attr, &abbrev->attrs[i], unit, info_ptr); if (info_ptr == NULL) - return FALSE; + goto fail; if (func) {