mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Potential memory leak in mpi_exp_mod() when error occurs during
calculation of RR.
This commit is contained in:
parent
dd75c3183b
commit
75a2860f26
2 changed files with 3 additions and 1 deletions
|
|
@ -1715,7 +1715,7 @@ cleanup:
|
|||
|
||||
mpi_free( &W[1] ); mpi_free( &T ); mpi_free( &Apos );
|
||||
|
||||
if( _RR == NULL )
|
||||
if( _RR == NULL || _RR->p == NULL )
|
||||
mpi_free( &RR );
|
||||
|
||||
return( ret );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue