summaryrefslogtreecommitdiffstats
path: root/crypto/store
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2020-09-10 18:21:46 +1000
committerShane Lontis <shane.lontis@oracle.com>2020-09-12 15:57:24 +1000
commit97f7a6d42e9d2f38969aff75b0d8f00d934ac8cf (patch)
treee803f8d4fd3ba8b1c8d70322a635c606ecc87ba5 /crypto/store
parent9951eaf467f8cc43ffad69222b42340c3b24cd52 (diff)
Fix coverity issue: CID 1466482 - Resource leak in OSSL_STORE_SEARCH_by_key_fingerprint()
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/12847)
Diffstat (limited to 'crypto/store')
-rw-r--r--crypto/store/store_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/store/store_lib.c b/crypto/store/store_lib.c
index 8cf051818c..0f686fb119 100644
--- a/crypto/store/store_lib.c
+++ b/crypto/store/store_lib.c
@@ -850,6 +850,7 @@ OSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_key_fingerprint(const EVP_MD *digest,
OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST,
"%s size is %d, fingerprint size is %zu",
EVP_MD_name(digest), EVP_MD_size(digest), len);
+ OPENSSL_free(search);
return NULL;
}