aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf-properties.c')
-rw-r--r--bfd/elf-properties.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf-properties.c b/bfd/elf-properties.c
index a42abc4..76ddad6 100644
--- a/bfd/elf-properties.c
+++ b/bfd/elf-properties.c
@@ -703,6 +703,8 @@ _bfd_elf_convert_gnu_properties (bfd *ibfd, asection *isec,
if (size > bfd_section_size (isec))
{
contents = (bfd_byte *) bfd_malloc (size);
+ if (contents == NULL)
+ return FALSE;
free (*ptr);
*ptr = contents;
}