From f48fd9595d380a41b76e09456b1d5eced2777eee Mon Sep 17 00:00:00 2001 From: jordan Date: Mon, 6 Apr 2026 13:53:11 -0500 Subject: [PATCH] test_pkcs7: use XFREE instead of free. --- tests/api/test_pkcs7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/test_pkcs7.c b/tests/api/test_pkcs7.c index 3cfb22e8ea..0425d64373 100644 --- a/tests/api/test_pkcs7.c +++ b/tests/api/test_pkcs7.c @@ -4718,7 +4718,7 @@ int test_wc_PKCS7_DecodeCompressedData(void) XFREE(decompressed, heap, DYNAMIC_TYPE_TMP_BUFFER); if (cert_buf != NULL) - free(cert_buf); + XFREE(cert_buf, NULL, DYNAMIC_TYPE_TMP_BUFFER); wc_PKCS7_Free(pkcs7); #endif return EXPECT_RESULT();