SWDEV-485904 - Fix mem leak with Unit_hipMemSetAccess_negative

Change-Id: I6339ec290d901a6fc5cf33e33a71bf1b86f635ae


[ROCm/hip-tests commit: 984731b3ec]
This commit is contained in:
Anusha GodavarthySurya
2024-09-20 12:20:37 +00:00
committed by Anusha Godavarthy Surya
parent 12892960c2
commit 4957a7b5cd
@@ -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));