aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/auditordb/plugin_auditordb_postgres.c1
-rw-r--r--src/auditordb/test_auditordb.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
index 863e20582..9450ae94f 100644
--- a/src/auditordb/plugin_auditordb_postgres.c
+++ b/src/auditordb/plugin_auditordb_postgres.c
@@ -143,6 +143,7 @@ connect_to_postgres (struct PostgresClosure *pc)
TALER_LOG_ERROR ("Database connection failed: %s\n",
PQerrorMessage (conn));
GNUNET_break (0);
+ PQfinish (conn);
return NULL;
}
PQsetNoticeReceiver (conn,
diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c
index f286660fb..8f1b7da8a 100644
--- a/src/auditordb/test_auditordb.c
+++ b/src/auditordb/test_auditordb.c
@@ -159,10 +159,13 @@ run (void *cls)
struct TALER_DenominationPrivateKey denom_priv;
struct TALER_DenominationPublicKey denom_pub;
struct GNUNET_HashCode denom_pub_hash;
+
denom_priv.rsa_private_key = GNUNET_CRYPTO_rsa_private_key_create (1024);
denom_pub.rsa_public_key = GNUNET_CRYPTO_rsa_private_key_get_public (
denom_priv.rsa_private_key);
GNUNET_CRYPTO_rsa_public_key_hash (denom_pub.rsa_public_key, &denom_pub_hash);
+ GNUNET_CRYPTO_rsa_private_key_free (denom_priv.rsa_private_key);
+ GNUNET_CRYPTO_rsa_public_key_free (denom_pub.rsa_public_key);
struct GNUNET_TIME_Absolute now, past, future, date;
now = GNUNET_TIME_absolute_get ();