Skip to content

Commit 01689b8

Browse files
committed
tests api: use XFREE instead of free in dual_alg tests.
1 parent f48fd95 commit 01689b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ static int test_dual_alg_crit_ext_support(void)
14441444
XFREE(root, NULL, DYNAMIC_TYPE_TMP_BUFFER);
14451445
XFREE(server, NULL, DYNAMIC_TYPE_TMP_BUFFER);
14461446

1447-
free(serverKey);
1447+
XFREE(serverKey, NULL, DYNAMIC_TYPE_TMP_BUFFER);
14481448

14491449
return EXPECT_RESULT();
14501450
}
@@ -1519,7 +1519,7 @@ static int test_dual_alg_support(void)
15191519
XFREE(root, NULL, DYNAMIC_TYPE_TMP_BUFFER);
15201520
XFREE(server, NULL, DYNAMIC_TYPE_TMP_BUFFER);
15211521

1522-
free(serverKey);
1522+
XFREE(serverKey, NULL, DYNAMIC_TYPE_TMP_BUFFER);
15231523

15241524
return EXPECT_RESULT();
15251525
}

0 commit comments

Comments
 (0)