diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-03-29 20:34:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-03-29 20:34:10 +0000 |
commit | 8baf459bbe6b07086a9fe1131b1390bead4e1a20 (patch) | |
tree | b7293a5274a08b1b1b841e1849366066462f85f5 /binutils | |
parent | 9f191108c13b407b2996beedc28d61f58310e862 (diff) | |
download | gdb-8baf459bbe6b07086a9fe1131b1390bead4e1a20.zip gdb-8baf459bbe6b07086a9fe1131b1390bead4e1a20.tar.gz gdb-8baf459bbe6b07086a9fe1131b1390bead4e1a20.tar.bz2 |
Fix last patch.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/nm.c | 8 |
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 |