]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/bfdio.c
Replace "if (x) free (x)" with "free (x)", bfd
[thirdparty/binutils-gdb.git] / bfd / bfdio.c
index 0133b76064a6f6c94f4763989799c154e01e756c..5ef3ec493ea5f11665a929d51c23424bd2e31b83 100644 (file)
@@ -662,8 +662,7 @@ memory_bclose (struct bfd *abfd)
 {
   struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream;
 
-  if (bim->buffer != NULL)
-    free (bim->buffer);
+  free (bim->buffer);
   free (bim);
   abfd->iostream = NULL;