mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-19 14:34:07 +08:00
use bfd_xmalloc instead of malloc
This commit is contained in:
parent
d09de70e76
commit
240f485a41
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user