[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated: fix leaks in audito
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated: fix leaks in auditordb |
Date: |
Sun, 15 Sep 2019 11:25:38 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 13707999 fix leaks in auditordb
13707999 is described below
commit 13707999f1c3d9b4ca67da1e428993a37de23b52
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Sep 15 11:25:35 2019 +0200
fix leaks in auditordb
---
src/auditordb/plugin_auditordb_postgres.c | 1 +
src/auditordb/test_auditordb.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/src/auditordb/plugin_auditordb_postgres.c
b/src/auditordb/plugin_auditordb_postgres.c
index 863e2058..9450ae94 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 f286660f..8f1b7da8 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 ();
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-exchange] branch master updated: fix leaks in auditordb,
gnunet <=