aboutsummaryrefslogtreecommitdiff
path: root/bfd/i386lynx.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/i386lynx.c')
-rw-r--r--bfd/i386lynx.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bfd/i386lynx.c b/bfd/i386lynx.c
index 6b27bd1..089c7a7 100644
--- a/bfd/i386lynx.c
+++ b/bfd/i386lynx.c
@@ -418,12 +418,9 @@ doit:
count = reloc_size / each_size;
- reloc_cache = (arelent *) malloc (count * sizeof (arelent));
+ reloc_cache = (arelent *) bfd_malloc (count * sizeof (arelent));
if (!reloc_cache && count != 0)
- {
- bfd_set_error (bfd_error_no_memory);
- return false;
- }
+ return false;
memset (reloc_cache, 0, count * sizeof (arelent));
relocs = (PTR) bfd_alloc (abfd, reloc_size);