From: Ian Lance Taylor Date: Tue, 29 Mar 1994 20:34:10 +0000 (+0000) Subject: Fix last patch. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8baf459bbe6b07086a9fe1131b1390bead4e1a20;p=binutils-gdb.git Fix last patch. --- diff --git a/binutils/nm.c b/binutils/nm.c index 8aca314caf0..201c3c90104 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -369,6 +369,7 @@ display_archive (file) bfd *file; { bfd *arfile = NULL; + bfd *last_arfile = NULL; char **matching; (*format->print_archive_filename) (bfd_get_filename (file)); @@ -403,8 +404,13 @@ display_archive (file) } } - bfd_close (arfile); + if (last_arfile != NULL) + bfd_close (last_arfile); + last_arfile = arfile; } + + if (last_arfile != NULL) + bfd_close (last_arfile); } static boolean