diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-02-27 18:45:45 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-02-27 18:45:45 +0000 |
commit | 920581c57e08ffff3fb22f70759f47eaf9b509cc (patch) | |
tree | 1530da3ccb1b6f58acc9ff8eb7461d2ecfb75b0f /bfd/aoutx.h | |
parent | * config/sparc/sp64linux.mt: New file. (diff) | |
download | binutils-gdb-920581c57e08ffff3fb22f70759f47eaf9b509cc.tar.gz binutils-gdb-920581c57e08ffff3fb22f70759f47eaf9b509cc.tar.bz2 binutils-gdb-920581c57e08ffff3fb22f70759f47eaf9b509cc.zip |
2001-02-27 H.J. Lu <hjl@gnu.org>
* aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
abfd->tdata.aout_data == NULL.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 94a46b08689..e5cc394ca14 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -2906,7 +2906,8 @@ NAME(aout,bfd_free_cached_info) (abfd) { asection *o; - if (bfd_get_format (abfd) != bfd_object) + if (bfd_get_format (abfd) != bfd_object + || abfd->tdata.aout_data == NULL) return true; #define BFCI_FREE(x) if (x != NULL) { free (x); x = NULL; } |