diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-19 06:17:08 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-19 06:17:08 +0000 |
commit | f3f29240da4a1211185583322f7d0dd7940c814a (patch) | |
tree | a9944ceb9dbe0e07295d932359c057cd174de143 /bfd/trad-core.c | |
parent | 4359a7ef33670fb3637b9962d35a35774aa6845f (diff) | |
download | fsf-binutils-gdb-f3f29240da4a1211185583322f7d0dd7940c814a.zip fsf-binutils-gdb-f3f29240da4a1211185583322f7d0dd7940c814a.tar.gz fsf-binutils-gdb-f3f29240da4a1211185583322f7d0dd7940c814a.tar.bz2 |
* trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc not
bfd_zalloc for rawptr, because later on we may call free, not
bfd_release, on it.
* bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors.
* cisco-core.c: New file.
* Makfile.in: Change accordingly.
* bfd-in2.h: Rebuilt.
Diffstat (limited to 'bfd/trad-core.c')
-rw-r--r-- | bfd/trad-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/trad-core.c b/bfd/trad-core.c index bf7266b..8d06a92 100644 --- a/bfd/trad-core.c +++ b/bfd/trad-core.c @@ -147,7 +147,7 @@ trad_unix_core_file_p (abfd) /* Allocate both the upage and the struct core_data at once, so a single free() will free them both. */ rawptr = (struct trad_core_struct *) - bfd_zalloc (abfd, sizeof (struct trad_core_struct)); + bfd_zmalloc (abfd, sizeof (struct trad_core_struct)); if (rawptr == NULL) { bfd_set_error (bfd_error_no_memory); return 0; |