PR binutils/10785
authorAlan Modra <amodra@gmail.com>
Fri, 16 Oct 2009 07:14:43 +0000 (07:14 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 16 Oct 2009 07:14:43 +0000 (07:14 +0000)
commit493152cb4f287f9de3f03743349e911df9448e60
tree73825fdd6b8ba7e0238b5957c702b55308e4ffc6
parent12edd763cc3b83a257eb3173caca075f027e9afa
PR binutils/10785
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Don't bfd_alloc
bim and bim->buffer.  bfd_malloc instead.
* peicode.h (pe_ILF_build_a_bfd): Similarly.
(ILF_DATA_SIZE): Don't include bim.
* opncls.c (bfd_close): Test bim->buffer non-NULL before freeing.
bfd/ChangeLog
bfd/coff-alpha.c
bfd/opncls.c
bfd/peicode.h