* addr2line.c (process_file): Close bfd on error paths.
if (bfd_check_format (abfd, bfd_archive))
{
non_fatal (_("%s: cannot get addresses from archive"), file_name);
+ bfd_close (abfd);
return 1;
}
bfd_nonfatal (bfd_get_filename (abfd));
if (bfd_get_error () == bfd_error_file_ambiguously_recognized)
list_matching_formats (matching);
+ bfd_close (abfd);
return 1;
}
if (section == NULL)
{
non_fatal (_("%s: cannot find section %s"), file_name, section_name);
+ bfd_close (abfd);
return 1;
}
}