From 7f505fa138d426a71999a67e3c023ea9eb650bce Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 6 Sep 2017 15:07:17 +1000 Subject: [PATCH] mbedtls: Re-apply ECP memory leak fix Fix not yet submitted upstream. (Previously applied in ffefeef5ea271735884d656afac7a4155a57c87f) --- library/ecp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ecp.c b/library/ecp.c index 41db3fbe5b..45e3ef5185 100644 --- a/library/ecp.c +++ b/library/ecp.c @@ -1446,7 +1446,7 @@ static int ecp_mul_comb( mbedtls_ecp_group *grp, mbedtls_ecp_point *R, cleanup: - if( T != NULL && ! p_eq_g ) + if( T != NULL && T != grp->T ) { for( i = 0; i < pre_len; i++ ) mbedtls_ecp_point_free( &T[i] );