aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-03-29 20:34:10 +0000
committerIan Lance Taylor <ian@airs.com>1994-03-29 20:34:10 +0000
commit8baf459bbe6b07086a9fe1131b1390bead4e1a20 (patch)
treeb7293a5274a08b1b1b841e1849366066462f85f5
parent9f191108c13b407b2996beedc28d61f58310e862 (diff)
downloadgdb-8baf459bbe6b07086a9fe1131b1390bead4e1a20.zip
gdb-8baf459bbe6b07086a9fe1131b1390bead4e1a20.tar.gz
gdb-8baf459bbe6b07086a9fe1131b1390bead4e1a20.tar.bz2
Fix last patch.
-rw-r--r--binutils/nm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/binutils/nm.c b/binutils/nm.c
index 8aca314..201c3c9 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