aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index 8da986714..e9a9466b2 100644
--- 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);