aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive64.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-20 14:32:31 +0000
committerTom Tromey <tromey@redhat.com>2012-08-20 14:32:31 +0000
commit06e7acd76f7f0e6b64164d30451d02a2a7dbfbb6 (patch)
treeba3b2b1dd41f813d84346a90e3c304b1af595604 /bfd/archive64.c
parent542385d9f7b4804a6460d71406dc3bfdaec2dd6b (diff)
downloadgdb-06e7acd76f7f0e6b64164d30451d02a2a7dbfbb6.zip
gdb-06e7acd76f7f0e6b64164d30451d02a2a7dbfbb6.tar.gz
gdb-06e7acd76f7f0e6b64164d30451d02a2a7dbfbb6.tar.bz2
* vms-lib.c (_bfd_vms_lib_get_module): Use bfd_zmalloc for
areltdata. * opncls.c (_bfd_delete_bfd): Free arelt_data. * mach-o.c (bfd_mach_o_fat_member_init): Use bfd_zmalloc for areltdata. * ecoff.c (_bfd_ecoff_slurp_armap): Use free for mapdata. * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Use bfd_zmalloc for areltdata. (xcoff_write_archive_contents_old): Likewise. (xcoff_write_archive_contents_big): Likewise. * archive64.c (bfd_elf64_archive_slurp_armap): Use free for areltdata. * archive.c (_bfd_generic_read_ar_hdr_mag): Use bfd_zmalloc and free for areltdata. (_bfd_get_elt_at_filepos): Likewise. Clear n_nfd->arelt_data on failure. (do_slurp_bsd_armap): Use bfd_zmalloc and free for areltdata. (do_slurp_coff_armap): Likewise. (_bfd_slurp_extended_name_table): Likewise. (bfd_slurp_bsd_armap_f2): Likewise. Don't leak 'mapdata'.
Diffstat (limited to 'bfd/archive64.c')
-rw-r--r--bfd/archive64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/archive64.c b/bfd/archive64.c
index f3a13d3..db4ce2c 100644
--- a/bfd/archive64.c
+++ b/bfd/archive64.c
@@ -77,7 +77,7 @@ bfd_elf64_archive_slurp_armap (bfd *abfd)
if (mapdata == NULL)
return FALSE;
parsed_size = mapdata->parsed_size;
- bfd_release (abfd, mapdata);
+ free (mapdata);
if (bfd_bread (int_buf, 8, abfd) != 8)
{