From d522feb1cddb810005c7e4b95db720e7edd1494f Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Wed, 15 May 2024 08:37:39 -0700 Subject: [PATCH] Free X509 object --- tests/api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index a386c1f9e..6b25e2a33 100644 --- a/tests/api.c +++ b/tests/api.c @@ -41256,7 +41256,8 @@ static int test_wolfSSL_X509_bad_altname(void) * name of "a*\0*". Ensure that it does not match "aaaaa" */ ExpectIntNE(wolfSSL_X509_check_host(x509, name, nameLen, WOLFSSL_ALWAYS_CHECK_SUBJECT, NULL), 1); - + X509_free(x509); + #endif return EXPECT_RESULT(); }