From 84e9d4fa3458f00f1e3e3e7a218aa170063d0ea5 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Tue, 28 Jun 2016 22:52:32 +0200 Subject: [PATCH] fix memory leak --- crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto.c b/crypto.c index 099d3dd..4ed9be8 100644 --- a/crypto.c +++ b/crypto.c @@ -936,8 +936,8 @@ smc_compute_outcome (struct AuctionData *ad, size_t *buflen) gcry_mpi_point_release (tmpa); gcry_mpi_point_release (tmpb); - smc_free1 (tlta1, ad->n); - smc_free1 (tltb1, ad->n); + smc_free1 (tlta1, ad->k); + smc_free1 (tltb1, ad->k); smc_free2 (tlta2, ad->n, ad->k); smc_free2 (tltb2, ad->n, ad->k); smc_free2 (tlta3, ad->n, ad->k);