diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-09-15 10:59:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-09-15 10:59:13 +0200 |
commit | cbfa5341949424c817beb15320ab7074088c6ac9 (patch) | |
tree | 790d8b85049a851573fd01e7775fc190972b84b8 | |
parent | 8843d60e683157f40e1908a4dc57b82f6f6bb6ee (diff) | |
download | exchange-cbfa5341949424c817beb15320ab7074088c6ac9.tar.gz exchange-cbfa5341949424c817beb15320ab7074088c6ac9.zip |
fixing leaks in tests
-rw-r--r-- | src/exchangedb/test_exchangedb_auditors.c | 1 | ||||
-rw-r--r-- | src/exchangedb/test_exchangedb_denomkeys.c | 2 |
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, | |||
119 | GNUNET_log_setup ("test-exchangedb-auditors", | 119 | GNUNET_log_setup ("test-exchangedb-auditors", |
120 | "WARNING", | 120 | "WARNING", |
121 | NULL); | 121 | NULL); |
122 | EXITIF (NULL == (tmpdir = GNUNET_DISK_mkdtemp ("test_exchangedb_auditors"))); | ||
123 | GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, | 122 | GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, |
124 | &want_apub, | 123 | &want_apub, |
125 | sizeof (want_apub)); | 124 | 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, | |||
208 | GNUNET_CRYPTO_rsa_public_key_free (dki.denom_pub.rsa_public_key); | 208 | GNUNET_CRYPTO_rsa_public_key_free (dki.denom_pub.rsa_public_key); |
209 | if (NULL != dki_read.denom_priv.rsa_private_key) | 209 | if (NULL != dki_read.denom_priv.rsa_private_key) |
210 | GNUNET_CRYPTO_rsa_private_key_free (dki_read.denom_priv.rsa_private_key); | 210 | GNUNET_CRYPTO_rsa_private_key_free (dki_read.denom_priv.rsa_private_key); |
211 | if (NULL != dki_read.denom_pub.rsa_public_key) | ||
212 | GNUNET_CRYPTO_rsa_public_key_free (dki_read.denom_pub.rsa_public_key); | ||
211 | return ret; | 213 | return ret; |
212 | } | 214 | } |