Free X509 object

This commit is contained in:
Colton Willey
2024-05-15 08:37:39 -07:00
parent 958b5ac465
commit d522feb1cd

View File

@ -41256,7 +41256,8 @@ static int test_wolfSSL_X509_bad_altname(void)
* name of "a*\0*". Ensure that it does not match "aaaaa" */ * name of "a*\0*". Ensure that it does not match "aaaaa" */
ExpectIntNE(wolfSSL_X509_check_host(x509, name, nameLen, ExpectIntNE(wolfSSL_X509_check_host(x509, name, nameLen,
WOLFSSL_ALWAYS_CHECK_SUBJECT, NULL), 1); WOLFSSL_ALWAYS_CHECK_SUBJECT, NULL), 1);
X509_free(x509);
#endif #endif
return EXPECT_RESULT(); return EXPECT_RESULT();
} }