X509_STORE_up_ref
int X509_STORE_up_ref(X509_STORE *xs);
if (ref && store && !X509_STORE_up_ref(store))
if (!X509_STORE_up_ref(cert->verify_store))
if (!X509_STORE_up_ref(cert->chain_store))
if (store != NULL && !X509_STORE_up_ref(store))