mirror of
https://github.com/espressif/mbedtls.git
synced 2026-06-06 05:24:49 +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
e6f3be92cd
commit
7f505fa138
+1
-1
@@ -1446,7 +1446,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