diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-04-22 16:17:31 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-04-22 16:17:31 +0000 |
commit | 5aa379a8f9b3fcebcbee9aa210a276380eb63c4c (patch) | |
tree | ba80db8b28f91c8efe9754ad099130ebbcea9846 /bfd/cache.c | |
parent | 49a0a6c408056ffdb24a255fffc225f01a2ad173 (diff) | |
download | gdb-5aa379a8f9b3fcebcbee9aa210a276380eb63c4c.tar.gz |
2004-04-22 Andrew Cagney <cagney@redhat.com>
* cache.c (bfd_cache_close): Check for a previously closed file.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r-- | bfd/cache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/cache.c b/bfd/cache.c index 9146c05caca..0586061286a 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -336,6 +336,10 @@ bfd_cache_close (bfd *abfd) if (abfd->iovec != &cache_iovec) return TRUE; + if (abfd->iostream == NULL) + /* Previously closed. */ + return TRUE; + return bfd_cache_delete (abfd); } |