aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1993-01-06 08:24:08 +0000
committerDavid D. Zuhn <zoo@cygnus>1993-01-06 08:24:08 +0000
commit240f485a4102732e6082d14ecaca89cf03df641f (patch)
tree1e2af65c4aeb39fb6dfa067df8722a163445a0d3 /bfd
parentd09de70e76fb8048332867b687670c0dc780655c (diff)
downloadgdb-240f485a4102732e6082d14ecaca89cf03df641f.zip
gdb-240f485a4102732e6082d14ecaca89cf03df641f.tar.gz
gdb-240f485a4102732e6082d14ecaca89cf03df641f.tar.bz2
use bfd_xmalloc instead of malloc
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/seclet.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7a74667..ebeceb0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jan 6 00:16:49 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
+
+ * seclet.c (seclet_dump_seclet): use bfd_xmalloc instead of malloc
+
Tue Jan 5 09:35:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* configure.in (post-target): If --with-minimal-bfd is specified,
diff --git a/bfd/seclet.c b/bfd/seclet.c
index c26f7b4..9da4eb0 100644
--- a/bfd/seclet.c
+++ b/bfd/seclet.c
@@ -113,7 +113,7 @@ DEFUN(seclet_dump_seclet,(abfd, seclet, section, data),
case bfd_fill_seclet:
/* Fill in the section with us */
{
- char *d = malloc(seclet->size);
+ char *d = bfd_xmalloc(seclet->size);
unsigned int i;
for (i =0; i < seclet->size; i+=2) {
d[i] = seclet->u.fill.value >> 8;