projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Coverity 1458439: fix resource leak
[openssl.git]
/
providers
/
implementations
/
asymciphers
/
rsa_enc.c
diff --git
a/providers/implementations/asymciphers/rsa_enc.c
b/providers/implementations/asymciphers/rsa_enc.c
index 2cce8474cd63e99b93a6e8be16786355dc7f269f..87349ed64b3423f08ac7b1681458efaef2a565f1 100644
(file)
--- 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;