forked from Imagelibrary/binutils-gdb
Cleanup bfd_close() cleanups.
This commit is contained in:
@@ -295,7 +295,7 @@ core_open (filename, 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, temp_bfd);
|
||||
make_cleanup_bfd_close (temp_bfd);
|
||||
error ("\"%s\" is not a core dump: %s",
|
||||
filename, bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
@@ -493,7 +493,7 @@ core_file_to_sym_file (core)
|
||||
/* 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, temp_bfd);
|
||||
make_cleanup_bfd_close (temp_bfd);
|
||||
error ("\"%s\" is not a core dump: %s",
|
||||
core, bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user