From b4146bad184788b354ded4287129ce78d048e1aa Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Mon, 7 Oct 2024 13:09:47 -0700 Subject: [PATCH] Free X509 store ref on store free --- src/x509_str.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/x509_str.c b/src/x509_str.c index 9b90c4b72c..dfb11fb026 100644 --- a/src/x509_str.c +++ b/src/x509_str.c @@ -869,6 +869,7 @@ void wolfSSL_X509_STORE_free(WOLFSSL_X509_STORE* store) store->lookup.dirs = NULL; } #endif + wolfSSL_RefFree(&store->ref); XFREE(store, NULL, DYNAMIC_TYPE_X509_STORE); } }