summaryrefslogtreecommitdiff
path: root/src/auditordb/test_auditordb.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-09-15 11:25:35 +0200
committerChristian Grothoff <christian@grothoff.org>2019-09-15 11:25:35 +0200
commit13707999f1c3d9b4ca67da1e428993a37de23b52 (patch)
treed9784350dd051b8221c894e1d0481e391e2b2c12 /src/auditordb/test_auditordb.c
parent5503c78160d701b85cecfe20af670808becacd39 (diff)
downloadexchange-13707999f1c3d9b4ca67da1e428993a37de23b52.tar.gz
exchange-13707999f1c3d9b4ca67da1e428993a37de23b52.tar.bz2
exchange-13707999f1c3d9b4ca67da1e428993a37de23b52.zip
fix leaks in auditordb
Diffstat (limited to 'src/auditordb/test_auditordb.c')
-rw-r--r--src/auditordb/test_auditordb.c3
1 files changed, 3 insertions, 0 deletions
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 ();