* coffcode.h (coff_set_arch_mach_hook): Use free(), because there
authorGeoffrey Keating <geoffk@geoffk.org>
Sat, 19 Feb 2000 01:11:19 +0000 (01:11 +0000)
committerGeoffrey Keating <geoffk@geoffk.org>
Sat, 19 Feb 2000 01:11:19 +0000 (01:11 +0000)
is no bfd_free().  Revert bfd_free part of previous change.

bfd/ChangeLog
bfd/coffcode.h

index 1d276034629a708e0f45526216e497be394f3c73..5e579f3ad2a8059a77a616e0fadd678e27efe065 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-18  Geoff Keating  <geoffk@cygnus.com>
+
+       * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
+       is no bfd_free().  Revert bfd_free part of previous change.
+
 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
 
        * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
index 58dd879993b2fcc32f50fb7f35f6c6a87d810328..ad738467e93c82a6efba5749b15270d1031cf3ff 100644 (file)
@@ -1888,7 +1888,7 @@ coff_set_arch_mach_hook (abfd, filehdr)
                    || (bfd_read (buf, 1, bfd_coff_symesz (abfd), abfd) 
                        != bfd_coff_symesz (abfd)))
                  {
-                   bfd_free (buf);
+                   free (buf);
                    return false;
                  }
                coff_swap_sym_in (abfd, (PTR) buf, (PTR) &sym);
@@ -1896,7 +1896,7 @@ coff_set_arch_mach_hook (abfd, filehdr)
                  cputype = sym.n_type & 0xff;
                else
                  cputype = 0;
-               bfd_free (buf);
+               free (buf);
              }
          }
 
@@ -2768,7 +2768,7 @@ coff_compute_section_file_positions (abfd)
          current->target_index = target_index++;
       }
 
-    bfd_free (section_list);
+    free (section_list);
   }
 #else /* ! COFF_IMAGE_WITH_PE */
   {
@@ -3702,7 +3702,7 @@ coff_write_object_contents (abfd)
     coff_swap_filehdr_out (abfd, (PTR) & internal_f, (PTR) buff);
     amount = bfd_write ((PTR) buff, 1, bfd_coff_filhsz (abfd), abfd);
     
-    bfd_free (buff);
+    free (buff);
     
     if (amount != bfd_coff_filhsz (abfd))
       return false;
@@ -3722,7 +3722,7 @@ coff_write_object_contents (abfd)
       coff_swap_aouthdr_out (abfd, (PTR) & internal_a, (PTR) buff);
       amount = bfd_write ((PTR) buff, 1, bfd_coff_aoutsz (abfd), abfd);
       
-      bfd_free (buff);
+      free (buff);
       
       if (amount != bfd_coff_aoutsz (abfd))
        return false;
This page took 0.035473 seconds and 4 git commands to generate.