Free a STACK_OF(X509) and the certificates it owns (sk_X509_pop_free).
Declared in <openssl/x509.h>
<openssl/x509.h>
void OSSL_STACK_OF_X509_free(stack_st_X509* certs);