projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
coverity 1462574 Resource leak
[oweals/openssl.git]
/
providers
/
implementations
/
keymgmt
/
rsa_kmgmt.c
diff --git
a/providers/implementations/keymgmt/rsa_kmgmt.c
b/providers/implementations/keymgmt/rsa_kmgmt.c
index 3bf175b752ed09acc22bae3843335a814fb9bd02..181df998ad627af90d16bdbf499ce47b7a11e2a2 100644
(file)
--- a/
providers/implementations/keymgmt/rsa_kmgmt.c
+++ b/
providers/implementations/keymgmt/rsa_kmgmt.c
@@
-376,6
+376,7
@@
static void *rsa_gen_init(void *provctx, int selection)
if ((gctx->pub_exp = BN_new()) == NULL
|| !BN_set_word(gctx->pub_exp, RSA_F4)) {
BN_free(gctx->pub_exp);
+ OPENSSL_free(gctx);
gctx = NULL;
} else {
gctx->nbits = 2048;