From 64927efe69da0ed8cafd12fd00fd008d27acd732 Mon Sep 17 00:00:00 2001 From: Colleen Bertoni Date: Thu, 4 Jun 2026 10:28:38 -0500 Subject: [PATCH] adding needed unregister --- tests/catch/unit/memory/hipFree.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/catch/unit/memory/hipFree.cc b/tests/catch/unit/memory/hipFree.cc index 039d063520..a1f78b8979 100644 --- a/tests/catch/unit/memory/hipFree.cc +++ b/tests/catch/unit/memory/hipFree.cc @@ -159,6 +159,7 @@ TEST_CASE("Unit_hipFreeNegativeHost") { auto flag = GENERATE(hipHostRegisterDefault, hipHostRegisterPortable, hipHostRegisterMapped); HIP_CHECK(hipHostRegister((void*)hostPtr, sizeof(char), flag)); HIP_CHECK_ERROR(hipHostFree(hostPtr), hipErrorInvalidValue); + HIP_CHECK(hipHostUnregister((void*)hostPtr)); delete hostPtr; } } @@ -419,4 +420,4 @@ TEMPLATE_TEST_CASE("Unit_hipFreeMultiTArray", "", char, int, float2, float4) { // HIP_CHECK_THREAD_FINALIZE(); // } -#endif \ No newline at end of file +#endif