bfd/
authorTom Tromey <tromey@redhat.com>
Tue, 29 May 2012 14:23:40 +0000 (14:23 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 29 May 2012 14:23:40 +0000 (14:23 +0000)
commit6f0c7050fcfb9db9096f2f988f1104eba427bd6c
tree676656b0886d01b7ca2a962d9e9bbd344733a28b
parentec95993ca4e10b9b3d09f29a8bf48c8da7c7116f
bfd/
* opncls.c (bfd_fopen): Always close fd on failure.
(bfd_fdopenr): Likewise.
gdb/
* symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
fails.
* solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
* exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
fails.
* dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
fails.
bfd/ChangeLog
bfd/opncls.c
gdb/ChangeLog
gdb/dwarf2read.c
gdb/exec.c
gdb/solib.c
gdb/symfile.c