Potential memory leak in mpi_exp_mod() when error occurs during

calculation of RR.
This commit is contained in:
Paul Bakker 2014-03-31 12:08:17 +02:00
parent 3cbaf1e379
commit 6995efe8be
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@ Bugfix
of one of them failed
* x509_get_current_time() uses localtime_r() to prevent thread issues
* 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
Changes

View File

@ -1599,7 +1599,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 );