fix minor leak from getopt

This commit is contained in:
Christian Grothoff 2020-03-29 01:58:09 +01:00
parent eb32dd626a
commit 0f5f27e853
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1241,6 +1241,8 @@ main (int argc,
GNUNET_log_setup ("taler-exchange-httpd",
(NULL == loglev) ? "INFO" : loglev,
logfile));
GNUNET_free_non_null (loglev);
GNUNET_free_non_null (logfile);
if (NULL == cfgfile)
cfgfile = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file);
TEH_cfg = GNUNET_CONFIGURATION_create ();