From 0efc8118d3f06104a3006b888f84f1ff1ef62b37 Mon Sep 17 00:00:00 2001 From: Kareem Date: Tue, 30 Sep 2025 17:39:33 -0700 Subject: [PATCH] Fix potential memory leak in wolfSSL_X509_verify_cert. --- src/x509_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x509_str.c b/src/x509_str.c index f10281397bf..71b56bc6f69 100644 --- a/src/x509_str.c +++ b/src/x509_str.c @@ -514,7 +514,7 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx) failedCerts = wolfSSL_sk_X509_new_null(); if (!failedCerts) - return WOLFSSL_FATAL_ERROR; + goto exit; if (ctx->depth > 0) { depth = ctx->depth + 1;