fixing leaks in tests

This commit is contained in:
Christian Grothoff 2019-09-15 10:59:13 +02:00
parent 8843d60e68
commit cbfa534194
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 2 additions and 1 deletions

View File

@ -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));

View File

@ -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;
}