[gnutls-devel] [PATCH] fix memory leak in ECDSA key parameters verification
Jan Vcelak
jan.vcelak at nic.cz
Tue Apr 28 13:50:40 CEST 2015
Signed-off-by: Jan Vcelak <jan.vcelak at nic.cz>
---
lib/nettle/pk.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c
index 66815f0..7ac879f 100644
--- a/lib/nettle/pk.c
+++ b/lib/nettle/pk.c
@@ -1578,6 +1578,11 @@ wrap_nettle_pk_verify_priv_params(gnutls_pk_algorithm_t algo,
ecc_cleanup:
ecc_scalar_zclear(&priv);
ecc_point_clear(&pub);
+
+ mpz_clear(x1);
+ mpz_clear(y1);
+ mpz_clear(x2);
+ mpz_clear(y2);
}
break;
default:
--
2.3.6
More information about the Gnutls-devel
mailing list