goto err;
/*
- * sk_X509_pop_free will free up recipient STACK and its contents so set
- * rcert to NULL so it isn't freed up twice.
+ * OSSL_STACK_OF_X509_free() will free up recipient STACK and its contents
+ * so set rcert to NULL so it isn't freed up twice.
*/
rcert = NULL;
CMS_ContentInfo_free(cms);
X509_free(rcert);
- sk_X509_pop_free(recips, X509_free);
+ OSSL_STACK_OF_X509_free(recips);
BIO_free(in);
BIO_free(out);
BIO_free(tbio);