X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Flinker.c;h=d4057461a3f4a358f138f3d1b74694160e3c553a;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=3820ce14f83a7b2f591d8b7b0ee9dfa0025791f5;hpb=765cf5f623dbc2de8c8791bce9a29fcc3492436c;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/linker.c b/bfd/linker.c index 3820ce14f8..d4057461a3 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -2661,13 +2661,11 @@ default_indirect_link_order (bfd *output_bfd, new_contents, loc, input_section->size)) goto error_return; - if (contents != NULL) - free (contents); + free (contents); return TRUE; error_return: - if (contents != NULL) - free (contents); + free (contents); return FALSE; } @@ -2894,10 +2892,8 @@ _bfd_handle_already_linked (asection *sec, (_("%pB: duplicate section `%pA' has different contents\n"), sec->owner, sec); - if (sec_contents) - free (sec_contents); - if (l_sec_contents) - free (l_sec_contents); + free (sec_contents); + free (l_sec_contents); } break; }