mbedtls: Re-apply ECP memory leak fix

Fix not yet submitted upstream.

(Previously applied in ffefeef5ea)
This commit is contained in:
Angus Gratton
2017-09-06 15:07:17 +10:00
committed by Angus Gratton
parent 736db688a8
commit 3142997830

View File

@@ -1448,7 +1448,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] );