mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 23:55:35 +00:00
Potential memory leak in mpi_exp_mod() when error occurs during
calculation of RR.
This commit is contained in:
parent
3cbaf1e379
commit
6995efe8be
|
@ -43,6 +43,8 @@ Bugfix
|
||||||
of one of them failed
|
of one of them failed
|
||||||
* x509_get_current_time() uses localtime_r() to prevent thread issues
|
* x509_get_current_time() uses localtime_r() to prevent thread issues
|
||||||
* Some example server programs were not sending the close_notify alert.
|
* Some example server programs were not sending the close_notify alert.
|
||||||
|
* Potential memory leak in mpi_exp_mod() when error occurs during
|
||||||
|
calculation of RR.
|
||||||
|
|
||||||
= Version 1.2.10 released 2013-10-07
|
= Version 1.2.10 released 2013-10-07
|
||||||
Changes
|
Changes
|
||||||
|
|
|
@ -1599,7 +1599,7 @@ cleanup:
|
||||||
|
|
||||||
mpi_free( &W[1] ); mpi_free( &T ); mpi_free( &Apos );
|
mpi_free( &W[1] ); mpi_free( &T ); mpi_free( &Apos );
|
||||||
|
|
||||||
if( _RR == NULL )
|
if( _RR == NULL || _RR->p == NULL )
|
||||||
mpi_free( &RR );
|
mpi_free( &RR );
|
||||||
|
|
||||||
return( ret );
|
return( ret );
|
||||||
|
|
Loading…
Reference in a new issue