Dont use specific free function

This commit is contained in:
Colton Willey
2024-12-03 09:55:43 -08:00
parent 20e8ecec75
commit c5acceca5d

View File

@ -1194,15 +1194,15 @@ void wolfSSL_X509_STORE_free(WOLFSSL_X509_STORE* store)
} }
#if defined(OPENSSL_EXTRA) #if defined(OPENSSL_EXTRA)
if (store->certs != NULL) { if (store->certs != NULL) {
wolfSSL_sk_X509_pop_free(store->certs, wolfSSL_X509_free); wolfSSL_sk_X509_pop_free(store->certs, NULL);
store->certs = NULL; store->certs = NULL;
} }
if (store->owned != NULL) { if (store->owned != NULL) {
wolfSSL_sk_X509_pop_free(store->owned, wolfSSL_X509_free); wolfSSL_sk_X509_pop_free(store->owned, NULL);
store->owned = NULL; store->owned = NULL;
} }
if (store->trusted != NULL) { if (store->trusted != NULL) {
wolfSSL_sk_X509_pop_free(store->trusted, wolfSSL_X509_free); wolfSSL_sk_X509_pop_free(store->trusted, NULL);
store->trusted = NULL; store->trusted = NULL;
} }
#endif #endif