diff options
Diffstat (limited to 'bfd/simple.c')
-rw-r--r-- | bfd/simple.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/simple.c b/bfd/simple.c index 1e320fc..bbdef23 100644 --- a/bfd/simple.c +++ b/bfd/simple.c @@ -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); |