Skip to content

Commit b23db16

Browse files
committed
Refactor the double-free fix
1 parent 46c47e4 commit b23db16

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54596,6 +54596,7 @@ static int test_wolfSSL_DH(void)
5459654596
#ifdef WOLFSSL_KEY_GEN
5459754597
AssertNotNull(dh = DH_generate_parameters(2048, 2, NULL, NULL));
5459854598
AssertIntEQ(wolfSSL_DH_generate_parameters_ex(NULL, 2048, 2, NULL), 0);
54599+
DH_free(dh);
5459954600
#endif
5460054601
#endif /* !HAVE_FIPS || (HAVE_FIPS_VERSION && HAVE_FIPS_VERSION > 2) */
5460154602
#endif /* OPENSSL_ALL */

0 commit comments

Comments
 (0)