gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / bfd / simple.c
index 5acbc63baea2331965bcb8c98095e2c19cd38728..bbdef23a140d623631614ded8eb88723c28fae3c 100644 (file)
@@ -1,5 +1,5 @@
 /* simple.c -- BFD simple client routines
-   Copyright (C) 2002-2019 Free Software Foundation, Inc.
+   Copyright (C) 2002-2020 Free Software Foundation, Inc.
    Contributed by MontaVista Software, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -242,8 +242,7 @@ bfd_simple_get_relocated_section_contents (bfd *abfd,
                                   * saved_offsets.section_count);
   if (saved_offsets.sections == NULL)
     {
-      if (data)
-       free (data);
+      free (data);
       _bfd_generic_link_hash_table_free (abfd);
       abfd->link.next = link_next;
       return NULL;
@@ -267,7 +266,7 @@ bfd_simple_get_relocated_section_contents (bfd *abfd,
                                                 outbuf,
                                                 0,
                                                 symbol_table);
-  if (contents == NULL && data != NULL)
+  if (contents == NULL)
     free (data);
 
   bfd_map_over_sections (abfd, simple_restore_output_info, &saved_offsets);
This page took 0.025988 seconds and 4 git commands to generate.