fix error message and leak
This commit is contained in:
parent
b407565351
commit
072d819e23
@ -3806,6 +3806,7 @@ libtaler_plugin_mintdb_postgres_init (void *cls)
|
|||||||
&db_conn_destroy))
|
&db_conn_destroy))
|
||||||
{
|
{
|
||||||
TALER_LOG_ERROR ("Cannnot create pthread key.\n");
|
TALER_LOG_ERROR ("Cannnot create pthread key.\n");
|
||||||
|
GNUNET_free (pg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
@ -3815,8 +3816,9 @@ libtaler_plugin_mintdb_postgres_init (void *cls)
|
|||||||
&pg->connection_cfg_str))
|
&pg->connection_cfg_str))
|
||||||
{
|
{
|
||||||
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
|
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
|
||||||
"mint",
|
"mintdb-postgres",
|
||||||
"db_conn_str");
|
"db_conn_str");
|
||||||
|
GNUNET_free (pg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
plugin = GNUNET_new (struct TALER_MINTDB_Plugin);
|
plugin = GNUNET_new (struct TALER_MINTDB_Plugin);
|
||||||
|
Loading…
Reference in New Issue
Block a user