projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d817144
)
pkey: free key manager on error path
author
Pauli
<paul.dale@oracle.com>
Wed, 15 Apr 2020 02:32:01 +0000
(12:32 +1000)
committer
Pauli
<paul.dale@oracle.com>
Fri, 17 Apr 2020 09:51:37 +0000
(19:51 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11371)
crypto/evp/pmeth_lib.c
patch
|
blob
|
history
diff --git
a/crypto/evp/pmeth_lib.c
b/crypto/evp/pmeth_lib.c
index b6617492dab8f7ad9b32ecfdc8bfa611ddbff388..e816265bc7805821021ad660b82a893c05ad9464 100644
(file)
--- a/
crypto/evp/pmeth_lib.c
+++ b/
crypto/evp/pmeth_lib.c
@@
-236,6
+236,7
@@
static EVP_PKEY_CTX *int_ctx_new(OPENSSL_CTX *libctx,
ret = OPENSSL_zalloc(sizeof(*ret));
if (ret == NULL) {
+ EVP_KEYMGMT_free(keymgmt);
#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)
ENGINE_finish(e);
#endif