diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-03-18 20:12:08 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-03-18 20:12:08 +0000 |
commit | c161de74a52740a8a981a244974b6e0c72d62298 (patch) | |
tree | 7160b5dafb79f63311ea65d4b14942df2b11efcf /gdb/xcoffexec.c | |
parent | b60b2e3ec6a69ac7d0ecc98013f45e006c35aa21 (diff) | |
download | gdb-c161de74a52740a8a981a244974b6e0c72d62298.zip gdb-c161de74a52740a8a981a244974b6e0c72d62298.tar.gz gdb-c161de74a52740a8a981a244974b6e0c72d62298.tar.bz2 |
* xcoffexec.c (exec_close): Don't close exec_bfd twice.
Diffstat (limited to 'gdb/xcoffexec.c')
-rw-r--r-- | gdb/xcoffexec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c index db658e0..7a57f9c 100644 --- a/gdb/xcoffexec.c +++ b/gdb/xcoffexec.c @@ -103,10 +103,9 @@ exec_close(quitting) vmap = 0; - if (exec_bfd) { - bfd_close (exec_bfd); - exec_bfd = NULL; - } + /* exec_bfd was already closed (the exec file has a vmap entry). */ + exec_bfd = NULL; + if (exec_ops.to_sections) { free (exec_ops.to_sections); exec_ops.to_sections = NULL; |