2009-10-16 Alan Modra <amodra@bigpond.net.au>
commit7f293e8e05703c4e6d27d0f62a736dd9b2e1022a
authorTristan Gingold <gingold@adacore.com>
Fri, 16 Oct 2009 10:02:43 +0000 (16 10:02 +0000)
committerTristan Gingold <gingold@adacore.com>
Fri, 16 Oct 2009 10:02:43 +0000 (16 10:02 +0000)
treecc2a647abdc6ddcd4790e323e3485a297dab2caa
parenta26228ad37d52b342897fe3e269d5c1079153a60
2009-10-16  Alan Modra  <amodra@bigpond.net.au>

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