aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-09-15 10:59:13 +0200
committerChristian Grothoff <christian@grothoff.org>2019-09-15 10:59:13 +0200
commitcbfa5341949424c817beb15320ab7074088c6ac9 (patch)
tree790d8b85049a851573fd01e7775fc190972b84b8 /src/exchangedb
parent8843d60e683157f40e1908a4dc57b82f6f6bb6ee (diff)
fixing leaks in tests
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/test_exchangedb_auditors.c1
-rw-r--r--src/exchangedb/test_exchangedb_denomkeys.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/exchangedb/test_exchangedb_auditors.c b/src/exchangedb/test_exchangedb_auditors.c
index 4c50d09ab..ecbb68547 100644
--- a/src/exchangedb/test_exchangedb_auditors.c
+++ b/src/exchangedb/test_exchangedb_auditors.c
@@ -119,7 +119,6 @@ main (int argc,
GNUNET_log_setup ("test-exchangedb-auditors",
"WARNING",
NULL);
- EXITIF (NULL == (tmpdir = GNUNET_DISK_mkdtemp ("test_exchangedb_auditors")));
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
&want_apub,
sizeof (want_apub));
diff --git a/src/exchangedb/test_exchangedb_denomkeys.c b/src/exchangedb/test_exchangedb_denomkeys.c
index 8b0c9c04e..1bb283bb0 100644
--- a/src/exchangedb/test_exchangedb_denomkeys.c
+++ b/src/exchangedb/test_exchangedb_denomkeys.c
@@ -208,5 +208,7 @@ main (int argc,
GNUNET_CRYPTO_rsa_public_key_free (dki.denom_pub.rsa_public_key);
if (NULL != dki_read.denom_priv.rsa_private_key)
GNUNET_CRYPTO_rsa_private_key_free (dki_read.denom_priv.rsa_private_key);
+ if (NULL != dki_read.denom_pub.rsa_public_key)
+ GNUNET_CRYPTO_rsa_public_key_free (dki_read.denom_pub.rsa_public_key);
return ret;
}