aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog2
-rw-r--r--bfd/dwarf2.c2
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)
{