From b3a48ac894b660f6b99dd10f01818fb6fc389b42 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 92a188b665..4b20b7a452 100644 --- a/library/ecp.c +++ b/library/ecp.c @@ -1450,7 +1450,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] );