diff options
author | Pauli <paul.dale@oracle.com> | 2020-04-15 12:32:01 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-04-17 19:51:37 +1000 |
commit | b5bcc053024ce5adeb714d0a48dce71188cbd13c (patch) | |
tree | db81c9b3c42310cb9dba6eed966d3f19a184e6f6 /crypto | |
parent | d8171446a274ab57e7d55d8d9f6ca8a0a7144d13 (diff) |
pkey: free key manager on error path
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11371)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/pmeth_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index b6617492da..e816265bc7 100644 --- 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 |