aboutsummaryrefslogtreecommitdiff
path: root/test_crypto.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-06-22 23:18:46 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-06-22 23:18:46 +0200
commit0fc7fb86b84e16daeabaea1fea455e65cc48b66e (patch)
tree7843096e14d6fa8a8585152c7f8c03f9185f0a3d /test_crypto.c
parenta9e4574c492207a840287e95e890c4b991849896 (diff)
random fixes
Diffstat (limited to 'test_crypto.c')
-rw-r--r--test_crypto.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/test_crypto.c b/test_crypto.c
index 33b9a9b..c0e9740 100644
--- a/test_crypto.c
+++ b/test_crypto.c
@@ -17,6 +17,7 @@
/**
* @file test_crypto.c
* @brief testing crypto and smc functions.
+ * @author Markus Teich
*/
/* For testing static functions and variables we include the whole source */
@@ -259,10 +260,13 @@ test_round1 ()
void
cleanup_auction_data ()
{
- uint16_t i;
-
- for (i = 0; i < bidders; i++)
+ for (uint16_t i = 0; i < bidders; i++)
{
+ for (uint16_t h = 0; h < bidders; h++)
+ gcry_mpi_point_release (ad[i].y[h]);
+
+ gcry_mpi_point_release (ad[i].Y);
+ gcry_mpi_release (ad[i].x);
free (ad[i].y);
smc_free2 (ad[i].alpha, ad[i].n, ad[i].k);
smc_free2 (ad[i].beta, ad[i].n, ad[i].k);