fix
[oweals/gnunet.git] / src / fs / test_fs_unindex.c
index 861685d3223b16fc19555a9c2ba2ac75fcd6f99a..81beb33824c5684102ab15a78e0e177f3c5e2720 100644 (file)
@@ -310,8 +310,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;
 }