Replace "if (x) free (x)" with "free (x)", bfd
[deliverable/binutils-gdb.git] / bfd / peicode.h
index c5a92afefc4604b29c92a2ac0f56dbc4a4546df9..d851ef8db82c4e70aac8ab5aaa1006a6094f85b1 100644 (file)
@@ -1133,8 +1133,7 @@ pe_ILF_build_a_bfd (bfd *     abfd,
   return TRUE;
 
  error_return:
-  if (vars.bim->buffer != NULL)
-    free (vars.bim->buffer);
+  free (vars.bim->buffer);
   free (vars.bim);
   return FALSE;
 }
@@ -1350,8 +1349,7 @@ pe_bfd_read_buildid (bfd *abfd)
   /* Read the whole section. */
   if (!bfd_malloc_and_get_section (abfd, section, &data))
     {
-      if (data != NULL)
-       free (data);
+      free (data);
       return;
     }
 
This page took 0.034292 seconds and 4 git commands to generate.