- dont resend useless channel_destroy messages
[oweals/gnunet.git] / src / util / program.c
index 73003891e28dc0b570f726721362509392660479..8b1d7773ed249cf4b9a802679647493a7664215e 100644 (file)
@@ -230,7 +230,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
                      "%s%s%s",
                      xdg,
                      DIR_SEPARATOR_STR,
-                     "gnunet.config");
+                     "gnunet.conf");
   else
     cfg_fn = GNUNET_strdup (GNUNET_DEFAULT_USER_CONFIG_FILE);
   lpfx = GNUNET_strdup (binaryName);
@@ -244,6 +244,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
     GNUNET_free_non_null (cc.cfgfile);
     GNUNET_free_non_null (loglev);
     GNUNET_free_non_null (logfile);
+    GNUNET_free (cfg_fn);
     GNUNET_free (allopts);
     GNUNET_free (lpfx);
     return (ret == GNUNET_SYSERR) ? GNUNET_SYSERR : GNUNET_OK;