cleaner
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Oct 2009 11:32:39 +0000 (11:32 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Oct 2009 11:32:39 +0000 (11:32 +0000)
src/util/container_bloomfilter.c

index 612bad92ff416601541c0c304270e9c221aaad44..1ed09296d1979c6f0568787d49192a5ef2dfd1f4 100644 (file)
@@ -551,11 +551,9 @@ GNUNET_CONTAINER_bloomfilter_free (struct GNUNET_CONTAINER_BloomFilter *bf)
 {
   if (NULL == bf)
     return;
-  if (bf->filename != NULL)
-    {
-      GNUNET_DISK_file_close (bf->fh);
-      GNUNET_free (bf->filename);
-    }
+  if (bf->fh != NULL)
+    GNUNET_DISK_file_close (bf->fh);
+  GNUNET_free_non_null (bf->filename);
   GNUNET_free (bf->bitArray);
   GNUNET_free (bf);
 }