summaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2001-02-27 18:45:45 +0000
committerH.J. Lu <hjl@lucon.org>2001-02-27 18:45:45 +0000
commit2715518339b52f45b74c64dea8f8fff08b832b38 (patch)
tree05bf8e7ec60731a06e566c64ba1ca7e8d0193653 /bfd/aoutx.h
parent0efa202cfc50b94ccb80c9ce64bb156b663d7a59 (diff)
downloadgdb-2715518339b52f45b74c64dea8f8fff08b832b38.tar.gz
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.h3
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; }