From 072d819e23e6a8fa336664f6e7a851bcd23f03e1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 24 Jan 2016 16:34:03 +0100 Subject: fix error message and leak --- src/mintdb/plugin_mintdb_postgres.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mintdb/plugin_mintdb_postgres.c') 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); -- cgit v1.2.3