Fixed memory leak in rsa.c introduced in 43f9799

This commit is contained in:
Paul Bakker 2013-10-04 10:56:03 +02:00
parent 60ad84f43f
commit 62087eed22
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +1,9 @@
PolarSSL ChangeLog 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 = Version 1.2.9 released 2013-10-01
Changes Changes
* x509_verify() now case insensitive for cn (RFC 6125 6.4) * x509_verify() now case insensitive for cn (RFC 6125 6.4)

View file

@ -1347,6 +1347,7 @@ int rsa_pkcs1_verify( rsa_context *ctx,
*/ */
void rsa_free( 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->RQ ); mpi_free( &ctx->RP ); mpi_free( &ctx->RN );
mpi_free( &ctx->QP ); mpi_free( &ctx->DQ ); mpi_free( &ctx->DP ); mpi_free( &ctx->QP ); mpi_free( &ctx->DQ ); mpi_free( &ctx->DP );
mpi_free( &ctx->Q ); mpi_free( &ctx->P ); mpi_free( &ctx->D ); mpi_free( &ctx->Q ); mpi_free( &ctx->P ); mpi_free( &ctx->D );