Skip to content

Commit 473de57

Browse files
committed
Free ctx before return
1 parent 284dea4 commit 473de57

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41283,6 +41283,7 @@ static int test_wolfSSL_X509_max_altnames(void)
4128341283
ExpectIntNE(wolfSSL_CTX_load_verify_locations_ex(ctx,
4128441284
over_max_altnames_cert, NULL, WOLFSSL_LOAD_FLAG_NONE),
4128541285
WOLFSSL_SUCCESS);
41286+
wolfSSL_CTX_free(ctx);
4128641287
#endif
4128741288
#endif
4128841289
return EXPECT_RESULT();
@@ -41308,6 +41309,7 @@ static int test_wolfSSL_X509_max_name_constraints(void)
4130841309

4130941310
ExpectIntNE(wolfSSL_CTX_load_verify_locations_ex(ctx, over_max_nc,
4131041311
NULL, WOLFSSL_LOAD_FLAG_NONE), WOLFSSL_SUCCESS);
41312+
wolfSSL_CTX_free(ctx);
4131141313
#endif
4131241314

4131341315
#endif

0 commit comments

Comments
 (0)