add OSSL_STACK_OF_X509_free() for commonly used pattern
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17307)
This commit is contained in:
parent
0d4c52320d
commit
79b2a2f2ee
52 changed files with 125 additions and 111 deletions
|
@ -375,7 +375,7 @@ static OSSL_STORE_INFO *try_decode_PKCS12(const char *pem_name,
|
|||
}
|
||||
EVP_PKEY_free(pkey);
|
||||
X509_free(cert);
|
||||
sk_X509_pop_free(chain, X509_free);
|
||||
OSSL_STACK_OF_X509_free(chain);
|
||||
store_info_free(osi_pkey);
|
||||
store_info_free(osi_cert);
|
||||
store_info_free(osi_ca);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue