From 88aa6e0b58e1038e7dab5248e9f97ed2bb87b03a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 5 Jun 2014 18:53:16 +0200 Subject: [PATCH] Fix potential memory leak in RSASSA-PSS verify --- library/rsa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/rsa.c b/library/rsa.c index e171afa18..6b034c6b8 100644 --- a/library/rsa.c +++ b/library/rsa.c @@ -1204,6 +1204,7 @@ int rsa_rsassa_pss_verify_ext( rsa_context *ctx, if( expected_salt_len != RSA_SALT_LEN_ANY && slen != (size_t) expected_salt_len ) { + md_free_ctx( &md_ctx ); return( POLARSSL_ERR_RSA_INVALID_PADDING ); }