mbedtls: Re-apply ECP memory leak fix

Fix not yet submitted upstream.

(Previously applied in ffefeef5ea271735884d656afac7a4155a57c87f)
This commit is contained in:
Angus Gratton
2018-05-08 21:24:11 +08:00
committed by Ivan Grokhotkov
parent 55f2a5a68d
commit b3a48ac894
+1 -1
View File
@@ -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] );