mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
pkey: free key manager on error path
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11371)
This commit is contained in:
parent
d8171446a2
commit
b5bcc05302
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user