projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add OSSL_STACK_OF_X509_free() for commonly used pattern
[openssl.git]
/
crypto
/
store
/
store_result.c
diff --git
a/crypto/store/store_result.c
b/crypto/store/store_result.c
index 3a0dc9dfba9357d4b7f229160ad9ec13c6b7e3e1..3f21c904f4ebee3b97dcafdb3124f790a55f3aa2 100644
(file)
--- a/
crypto/store/store_result.c
+++ b/
crypto/store/store_result.c
@@
-603,7
+603,7
@@
static int try_pkcs12(struct extracted_param_data_st *data, OSSL_STORE_INFO **v,
}
EVP_PKEY_free(pkey);
X509_free(cert);
-
sk_X509_pop_free(chain, X509_free
);
+
OSSL_STACK_OF_X509_free(chain
);
OSSL_STORE_INFO_free(osi_pkey);
OSSL_STORE_INFO_free(osi_cert);
OSSL_STORE_INFO_free(osi_ca);