diff --git a/ChangeLog b/ChangeLog index 80208e5ce..4ea71d0bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ PolarSSL ChangeLog += Branch 1.2 +Bugfix + * Fixed memory leak in RSA as a result of introduction of blinding + = Version 1.2.9 released 2013-10-01 Changes * x509_verify() now case insensitive for cn (RFC 6125 6.4) diff --git a/library/rsa.c b/library/rsa.c index 1ef97f866..9e47d5d27 100644 --- a/library/rsa.c +++ b/library/rsa.c @@ -1347,6 +1347,7 @@ int rsa_pkcs1_verify( rsa_context *ctx, */ void rsa_free( rsa_context *ctx ) { + mpi_free( &ctx->Vi ); mpi_free( &ctx->Vf ); mpi_free( &ctx->RQ ); mpi_free( &ctx->RP ); mpi_free( &ctx->RN ); mpi_free( &ctx->QP ); mpi_free( &ctx->DQ ); mpi_free( &ctx->DP ); mpi_free( &ctx->Q ); mpi_free( &ctx->P ); mpi_free( &ctx->D );