Use unique_xmalloc_ptr in fixup_go_packaging
[deliverable/binutils-gdb.git] / bfd / elf-properties.c
index a42abc44dd5f4b0e1cb8cf1205b6a3e1466439ae..76ddad603711112dcac702aaa3fe16eb9dd3d89d 100644 (file)
@@ -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;
     }
This page took 0.02309 seconds and 4 git commands to generate.