aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-sframe.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf-sframe.c')
-rw-r--r--bfd/elf-sframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf-sframe.c b/bfd/elf-sframe.c
index 874d7c2..abc5c52 100644
--- a/bfd/elf-sframe.c
+++ b/bfd/elf-sframe.c
@@ -214,7 +214,7 @@ _bfd_elf_parse_sframe (bfd *abfd,
/* Decode the buffer and keep decoded contents for later use.
Relocations are performed later, but are such that the section's
size is unaffected. */
- sfd_info = bfd_malloc (sizeof (struct sframe_dec_info));
+ sfd_info = bfd_alloc (abfd, sizeof (*sfd_info));
sf_size = sec->size;
sfd_info->sfd_ctx = sframe_decode ((const char*)sfbuf, sf_size, &decerr);