diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-03 23:43:08 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-03 23:43:08 +0000 |
commit | 8ecc1f20271e47925e0c8e4eb1452d1cea8aa992 (patch) | |
tree | de763c2b466995e975a390900c3c9d13229703c3 | |
parent | eb00922a32c750dea9c7f85e9225e3fd3fe5a2d7 (diff) | |
download | gdb-8ecc1f20271e47925e0c8e4eb1452d1cea8aa992.zip gdb-8ecc1f20271e47925e0c8e4eb1452d1cea8aa992.tar.gz gdb-8ecc1f20271e47925e0c8e4eb1452d1cea8aa992.tar.bz2 |
2011-03-03 Michael Snyder <msnyder@vmware.com>
* dwarf2.c (scan_unit_for_symbols): Stop memory leak.
-rw-r--r-- | bfd/ChangeLog | 2 | ||||
-rw-r--r-- | bfd/dwarf2.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 <msnyder@vmware.com> + * 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 <hongjiu.lu@intel.com> 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) { |