summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2000-02-19 01:11:19 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2000-02-19 01:11:19 +0000
commit2fca4467d0b99075c350094a95087ae79f2258a0 (patch)
tree4148530b9ba0f1814e3b87c8e91bf3225d467bdf /bfd/coffcode.h
parent5ea1af0d5d96234b6c086f284c2fc66ad58b279b (diff)
downloadbinutils-gdb-2fca4467d0b99075c350094a95087ae79f2258a0.tar.gz
* coffcode.h (coff_set_arch_mach_hook): Use free(), because there
is no bfd_free(). Revert bfd_free part of previous change.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 58dd879993b..ad738467e93 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;