SWDEV-485904 - Fix mem leak with Unit_hipMemSetAccess_negative

Change-Id: I6339ec290d901a6fc5cf33e33a71bf1b86f635ae


[ROCm/hip-tests commit: 984731b3ec]
Tá an tiomantas seo le fáil i:
Anusha GodavarthySurya údaraithe agus Anusha Godavarthy Surya tiomanta 2024-12-09 03:51:09 -05:00
1 tuismitheoir 12892960c2
tiomantas 4957a7b5cd
1 comhad athraithe
+1
@@ -1494,6 +1494,7 @@ TEST_CASE("Unit_hipMemSetAccess_negative") {
hipDeviceptr_t ptrB;
HIP_CHECK(hipMemAddressReserve(&ptrB, size_mem, 0, 0, 0));
REQUIRE(hipMemSetAccess(&ptrB, size_mem, &accessDesc, 1) == hipErrorInvalidValue);
HIP_CHECK(hipMemAddressFree(ptrB, size_mem));
}
HIP_CHECK(hipMemUnmap(ptrA, size_mem));