CID 327280 use after free in test case

This commit is contained in:
JacobBarthelmeh 2024-03-19 02:44:45 +07:00
parent 36e67af0f8
commit 228544c31e

View File

@ -2304,7 +2304,9 @@ static int test_wolfSSL_CertManagerAPI(void)
#endif
ExpectIntEQ(wolfSSL_CertManager_up_ref(cm), 1);
if (EXPECT_SUCCESS()) {
wolfSSL_CertManagerFree(cm);
}
wolfSSL_CertManagerFree(cm);
cm = NULL;