Skip to content

Commit 7aac9e5

Browse files
Merge pull request #10139 from philljj/fix_nightly_mem
Fix nightly mem
2 parents b5874a6 + 01689b8 commit 7aac9e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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
}

tests/api/test_pkcs7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4718,7 +4718,7 @@ int test_wc_PKCS7_DecodeCompressedData(void)
47184718
XFREE(decompressed, heap, DYNAMIC_TYPE_TMP_BUFFER);
47194719

47204720
if (cert_buf != NULL)
4721-
free(cert_buf);
4721+
XFREE(cert_buf, NULL, DYNAMIC_TYPE_TMP_BUFFER);
47224722
wc_PKCS7_Free(pkcs7);
47234723
#endif
47244724
return EXPECT_RESULT();

0 commit comments

Comments
 (0)