diff options
author | Pauli <paul.dale@oracle.com> | 2020-02-16 17:58:45 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-02-17 19:29:04 +1000 |
commit | 5472821ece34c87148271abd649538da0743df40 (patch) | |
tree | 1fdeb3da9ffb0e25cc6a53f90a98dc59b14be5cf /providers/implementations/asymciphers | |
parent | 31b28ad96aa841ae39d4009ebb15d90f2a2afdab (diff) |
Coverity 1458439: fix resource leak
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11101)
Diffstat (limited to 'providers/implementations/asymciphers')
-rw-r--r-- | providers/implementations/asymciphers/rsa_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/asymciphers/rsa_enc.c b/providers/implementations/asymciphers/rsa_enc.c index 2cce8474cd..87349ed64b 100644 --- a/providers/implementations/asymciphers/rsa_enc.c +++ b/providers/implementations/asymciphers/rsa_enc.c @@ -119,6 +119,7 @@ static int rsa_encrypt(void *vprsactx, unsigned char *out, size_t *outlen, return 0; } if (prsactx->oaep_md == NULL) { + OPENSSL_free(tbuf); prsactx->oaep_md = EVP_MD_fetch(prsactx->libctx, "SHA-1", NULL); PROVerr(0, ERR_R_INTERNAL_ERROR); return 0; |