These aren't important at all, but tidy them in case they obscure
other more important leaks.
* objcopy (copy_file): Close input bfd after errors.
if (ibfd == NULL || bfd_stat (ibfd, in_stat) != 0)
{
bfd_nonfatal_message (input_filename, NULL, NULL, NULL);
+ if (ibfd != NULL)
+ bfd_close (ibfd);
status = 1;
return;
}
{
close (ofd);
bfd_nonfatal_message (output_filename, NULL, NULL, NULL);
+ bfd_close (ibfd);
status = 1;
return;
}
{
close (ofd);
bfd_nonfatal_message (output_filename, NULL, NULL, NULL);
+ bfd_close (ibfd);
status = 1;
return;
}
if (core_error == bfd_error_file_ambiguously_recognized)
list_matching_formats (core_matching);
+ bfd_close (ibfd);
status = 1;
}
}