mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
mbedtls: Re-apply ECP memory leak fix
Fix not yet submitted upstream.
(Previously applied in ffefeef5ea
)
This commit is contained in:
committed by
Angus Gratton
parent
736db688a8
commit
3142997830
@@ -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] );
|
||||
|
Reference in New Issue
Block a user