Use bfd_cache_close, instead of accessing bfd->iostream directly.
This commit is contained in:
parent
832b640263
commit
c92c35e706
5 changed files with 14 additions and 5 deletions
|
@ -324,8 +324,8 @@ remove_output (void)
|
|||
{
|
||||
if (output_filename != NULL)
|
||||
{
|
||||
if (output_bfd != NULL && output_bfd->iostream != NULL)
|
||||
fclose ((FILE *) (output_bfd->iostream));
|
||||
if (output_bfd != NULL)
|
||||
bfd_cache_close (output_bfd);
|
||||
if (output_file != NULL)
|
||||
fclose (output_file);
|
||||
unlink (output_filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue