From 5606922c3d2e8c3d3ffda4347cb9fe3992d75f89 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 23 May 2020 17:34:07 +0200 Subject: [PATCH] PROV: Fix RSA-OAEP memory leak The OAEP label wasn't freed when the operation context was freed. Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/11927) --- providers/implementations/asymciphers/rsa_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/implementations/asymciphers/rsa_enc.c b/providers/implementations/asymciphers/rsa_enc.c index 405842e69e..1f9ded4a65 100644 --- a/providers/implementations/asymciphers/rsa_enc.c +++ b/providers/implementations/asymciphers/rsa_enc.c @@ -257,6 +257,7 @@ static void rsa_freectx(void *vprsactx) EVP_MD_free(prsactx->oaep_md); EVP_MD_free(prsactx->mgf1_md); + OPENSSL_free(prsactx->oaep_label); OPENSSL_free(prsactx); } -- 2.25.1