mirror of
https://github.com/espressif/mbedtls.git
synced 2026-08-25 04:39:52 +00:00
mbedtls: Re-apply ECP memory leak fix
Fix not yet submitted upstream. (Previously applied in ffefeef5ea271735884d656afac7a4155a57c87f)
This commit is contained in:
committed by
Ivan Grokhotkov
parent
55f2a5a68d
commit
b3a48ac894
+1
-1
@@ -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] );
|
||||
|
||||
Reference in New Issue
Block a user