summaryrefslogtreecommitdiffstats
path: root/providers/implementations
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-05-23 17:34:07 +0200
committerRichard Levitte <levitte@openssl.org>2020-05-26 07:56:30 +0200
commit5606922c3d2e8c3d3ffda4347cb9fe3992d75f89 (patch)
tree6d8101baa88922048548678f147d08634ff0b566 /providers/implementations
parentb8086652650c0782bc8d63b620663e04a3c6a3a7 (diff)
PROV: Fix RSA-OAEP memory leak
The OAEP label wasn't freed when the operation context was freed. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11927)
Diffstat (limited to 'providers/implementations')
-rw-r--r--providers/implementations/asymciphers/rsa_enc.c1
1 files changed, 1 insertions, 0 deletions
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);
}