From a0a9680325b1deacce0356e3ef5b7b70745c4e56 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Wed, 6 Mar 2024 15:13:38 -0600 Subject: [PATCH] Fix leak in wolfSSL_X509_STORE_CTX_get_chain --- src/x509_str.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/x509_str.c b/src/x509_str.c index d5849ad759..a38f93b205 100644 --- a/src/x509_str.c +++ b/src/x509_str.c @@ -557,6 +557,7 @@ WOLFSSL_STACK* wolfSSL_X509_STORE_CTX_get_chain(WOLFSSL_X509_STORE_CTX* ctx) } } else { + wolfSSL_X509_free(x509); WOLFSSL_MSG("Could not find CA for certificate"); } }