commit 072d819e23e6a8fa336664f6e7a851bcd23f03e1
parent b4075653516167f96464afa366482e1618e4b06b
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 24 Jan 2016 16:34:03 +0100
fix error message and leak
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
@@ -3806,6 +3806,7 @@ libtaler_plugin_mintdb_postgres_init (void *cls)
&db_conn_destroy))
{
TALER_LOG_ERROR ("Cannnot create pthread key.\n");
+ GNUNET_free (pg);
return NULL;
}
if (GNUNET_OK !=
@@ -3815,8 +3816,9 @@ libtaler_plugin_mintdb_postgres_init (void *cls)
&pg->connection_cfg_str))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- "mint",
+ "mintdb-postgres",
"db_conn_str");
+ GNUNET_free (pg);
return NULL;
}
plugin = GNUNET_new (struct TALER_MINTDB_Plugin);