fix
[oweals/gnunet.git] / src / fs / test_fs_unindex_persistence.c
index 2185be21d02952d18b543502a343c38eddac0c79..9bf617ba24cbbac88df0e1c48011b7249c4130cc 100644 (file)
@@ -375,8 +375,11 @@ main (int argc, char *argv[])
                      "nohelp", options, &run, NULL);
   stop_arm (&p1);
   GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-unindex/");
-  GNUNET_DISK_directory_remove (fn);
-  GNUNET_free_non_null (fn);
+  if (NULL != fn)
+    {
+      GNUNET_DISK_directory_remove (fn);
+      GNUNET_free (fn);
+    }
   return 0;
 }