Use bfd_set_filename more
authorAlan Modra <amodra@gmail.com>
Wed, 18 Sep 2019 01:04:46 +0000 (10:34 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 18 Sep 2019 12:02:51 +0000 (21:32 +0930)
commit90d92a632aaf75ce698335efeb383ddf785c12d8
tree66d29393e4100245fd03bfd25d97e98861772cf2
parent1bdd8facfbf6f94fa9603f528c7e8bdf91d90bfd
Use bfd_set_filename more

Fixes a few leaks in bfd and ld.

bfd/
* mach-o.c (bfd_mach_o_fat_member_init): Likewise.  Replace
xstrdup and xmalloc with bfd_strdup and bfd_malloc.  Return an
error status.  Adjust calls.
* vms-lib.c (_bfd_vms_lib_get_module): Test mhd->id earlier.
Close bfd on failure.  Replace xstrdup/bfd_alloc use with
bfd_malloc.  Use bfd_set_filename.
gdb/
* solib-spu.c (spu_bfd_open): Use bfd_set_filename.
* spu-linux-nat.c (spu_bfd_open): Likewise.
ld/
* emultempl/pe.em (after_open): Use bfd_set_filename.
* emultempl/pep.em (after_open): Use bfd_set_filename.
bfd/ChangeLog
bfd/mach-o.c
bfd/vms-lib.c
gdb/ChangeLog
gdb/solib-spu.c
gdb/spu-linux-nat.c
ld/ChangeLog
ld/emultempl/pe.em
ld/emultempl/pep.em
This page took 0.027061 seconds and 4 git commands to generate.