fix memory leak

This commit is contained in:
Markus Teich 2016-06-28 22:52:32 +02:00
parent a58894e6c4
commit 84e9d4fa34

View File

@ -936,8 +936,8 @@ smc_compute_outcome (struct AuctionData *ad, size_t *buflen)
gcry_mpi_point_release (tmpa); gcry_mpi_point_release (tmpa);
gcry_mpi_point_release (tmpb); gcry_mpi_point_release (tmpb);
smc_free1 (tlta1, ad->n); smc_free1 (tlta1, ad->k);
smc_free1 (tltb1, ad->n); smc_free1 (tltb1, ad->k);
smc_free2 (tlta2, ad->n, ad->k); smc_free2 (tlta2, ad->n, ad->k);
smc_free2 (tltb2, ad->n, ad->k); smc_free2 (tltb2, ad->n, ad->k);
smc_free2 (tlta3, ad->n, ad->k); smc_free2 (tlta3, ad->n, ad->k);