diff options
Diffstat (limited to 'test_crypto.c')
-rw-r--r-- | test_crypto.c | 10 |
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); |