Skip to content

Commit f48fd95

Browse files
committed
test_pkcs7: use XFREE instead of free.
1 parent 1cd8edb commit f48fd95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)