fix NPE
authorChristian Grothoff <christian@grothoff.org>
Thu, 7 Apr 2016 22:28:46 +0000 (22:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 7 Apr 2016 22:28:46 +0000 (22:28 +0000)
src/fs/gnunet-auto-share.c

index 6f27bdbb0103d466fed0b90db1e57cbad4292261..3e5c8777cbe2b5327f1ce515373edddd3d628231 100644 (file)
@@ -833,7 +833,7 @@ main (int argc, char *const *argv)
   shc_chld = NULL;
   GNUNET_DISK_pipe_close (sigpipe);
   sigpipe = NULL;
-  GNUNET_free (cfg_filename);
+  GNUNET_free_non_null (cfg_filename);
   cfg_filename = NULL;
   GNUNET_free ((void*) argv);
   return ok;