From: Richard Levitte Date: Sat, 23 May 2020 15:34:07 +0000 (+0200) Subject: PROV: Fix RSA-OAEP memory leak X-Git-Tag: openssl-3.0.0-alpha3~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5606922c3d2e8c3d3ffda4347cb9fe3992d75f89;p=thirdparty%2Fopenssl.git 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) --- diff --git a/providers/implementations/asymciphers/rsa_enc.c b/providers/implementations/asymciphers/rsa_enc.c index 405842e69e4..1f9ded4a651 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); }