This commit is contained in:
Christian Grothoff 2016-04-01 21:00:05 +02:00
parent a2a7a3272d
commit 937078bbdc

View File

@ -93,8 +93,6 @@ static unsigned int aggregation_limit = 10000;
static int static int
exchange_serve_process_config (const char *exchange_directory) exchange_serve_process_config (const char *exchange_directory)
{ {
char *type;
cfg = TALER_config_load (exchange_directory); cfg = TALER_config_load (exchange_directory);
if (NULL == cfg) if (NULL == cfg)
{ {
@ -130,7 +128,7 @@ exchange_serve_process_config (const char *exchange_directory)
GNUNET_CONFIGURATION_get_value_string (cfg, GNUNET_CONFIGURATION_get_value_string (cfg,
"exchange", "exchange",
"wireformat", "wireformat",
&type)) &exchange_wireformat))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
"exchange", "exchange",
@ -143,21 +141,18 @@ exchange_serve_process_config (const char *exchange_directory)
{ {
fprintf (stderr, fprintf (stderr,
"Failed to initialize DB subsystem\n"); "Failed to initialize DB subsystem\n");
GNUNET_free (type);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (NULL == if (NULL ==
(wire_plugin = TALER_WIRE_plugin_load (cfg, (wire_plugin = TALER_WIRE_plugin_load (cfg,
type))) exchange_wireformat)))
{ {
fprintf (stderr, fprintf (stderr,
"Failed to load wire plugin for `%s'\n", "Failed to load wire plugin for `%s'\n",
type); exchange_wireformat);
GNUNET_free (type);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
GNUNET_free (type);
return GNUNET_OK; return GNUNET_OK;
} }