Cleanup bfd_close() cleanups.

This commit is contained in:
Andrew Cagney 2000-05-16 02:43:39 +00:00
parent db8503c490
commit 5c65bbb629
8 changed files with 30 additions and 6 deletions

View file

@ -1230,7 +1230,7 @@ generic_load (char *args, int from_tty)
/* FIXME: should be checking for errors from bfd_close (for one thing,
on error it does not free all the storage associated with the
bfd). */
make_cleanup ((make_cleanup_func) bfd_close, loadfile_bfd);
make_cleanup_bfd_close (loadfile_bfd);
if (!bfd_check_format (loadfile_bfd, bfd_object))
{