summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-01-24 16:34:03 +0100
committerChristian Grothoff <christian@grothoff.org>2016-01-24 16:34:03 +0100
commit072d819e23e6a8fa336664f6e7a851bcd23f03e1 (patch)
tree4448468eb6e4005e70f3cd8e322d4bc8bdcaa122 /src
parentb4075653516167f96464afa366482e1618e4b06b (diff)
downloadexchange-072d819e23e6a8fa336664f6e7a851bcd23f03e1.tar.gz
exchange-072d819e23e6a8fa336664f6e7a851bcd23f03e1.tar.bz2
exchange-072d819e23e6a8fa336664f6e7a851bcd23f03e1.zip
fix error message and leak
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);