gdbarch-selftests.c: No longer error out if debugging something
[deliverable/binutils-gdb.git] / bfd / elf-properties.c
index 199e61728e418f3b1fdb437ef11152b3cb67930b..76ddad603711112dcac702aaa3fe16eb9dd3d89d 100644 (file)
@@ -1,5 +1,5 @@
 /* ELF program property support.
-   Copyright (C) 2017-2019 Free Software Foundation, Inc.
+   Copyright (C) 2017-2020 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -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.025249 seconds and 4 git commands to generate.