summaryrefslogtreecommitdiff
path: root/crypto/evp/pmeth_lib.c
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-03-18 12:57:13 +1000
committerPauli <ppzgs1@gmail.com>2021-03-20 10:08:00 +1000
commit7153f544378eea343c61446c8fc844ae3417ca84 (patch)
tree33f0de91421cdfe33bce0fbaefcabb8847f767da /crypto/evp/pmeth_lib.c
parent9b0f76e12f8de88c8709fe53e85f887485ef53f4 (diff)
downloadopenssl-new-7153f544378eea343c61446c8fc844ae3417ca84.tar.gz
evp: fix coverity 1470561: resource leak
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14596)
Diffstat (limited to 'crypto/evp/pmeth_lib.c')
-rw-r--r--crypto/evp/pmeth_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c
index 96d103544d..f145bdfdc6 100644
--- a/crypto/evp/pmeth_lib.c
+++ b/crypto/evp/pmeth_lib.c
@@ -313,6 +313,7 @@ static EVP_PKEY_CTX *int_ctx_new(OSSL_LIB_CTX *libctx,
if (propquery != NULL) {
ret->propquery = OPENSSL_strdup(propquery);
if (ret->propquery == NULL) {
+ OPENSSL_free(ret);
EVP_KEYMGMT_free(keymgmt);
return NULL;
}