PR 868
[deliverable/binutils-gdb.git] / bfd / stabs.c
index a9fe409f1ecb30fb2d8973b501ab2bfe6304c869..72e312cc5201f2874cf16fa40647bc253d08a485 100644 (file)
@@ -337,7 +337,7 @@ _bfd_link_section_stabs (bfd *abfd,
                      if (num_chars >= buf_len)
                        {
                          buf_len += 32 * 1024;
-                         symb = bfd_realloc (symb, buf_len);
+                         symb = bfd_realloc_or_free (symb, buf_len);
                          if (symb == NULL)
                            goto error_return;
                          symb_rover = symb + num_chars;
@@ -393,7 +393,7 @@ _bfd_link_section_stabs (bfd *abfd,
                goto error_return;
              t->sum_chars = sum_chars;
              t->num_chars = num_chars;
-             t->symb = bfd_realloc (symb, num_chars); /* Trim data down.  */
+             t->symb = symb = bfd_realloc_or_free (symb, num_chars); /* Trim data down.  */
              t->next = incl_entry->totals;
              incl_entry->totals = t;
            }
This page took 0.025058 seconds and 4 git commands to generate.