diff --git a/projects/hip/tests/catch/unit/memory/hipMemsetNegative.cc b/projects/hip/tests/catch/unit/memory/hipMemsetNegative.cc index 82a0c2879d..929ff2e3c6 100644 --- a/projects/hip/tests/catch/unit/memory/hipMemsetNegative.cc +++ b/projects/hip/tests/catch/unit/memory/hipMemsetNegative.cc @@ -105,7 +105,7 @@ TEST_CASE("Unit_hipMemset2D_Negative_InvalidPtr") { size_t pitch_A; HIP_CHECK(hipMallocPitch(&A_d, &pitch_A, width, height)); testHipMemset2DApis(dst, pitch_A, memsetVal, width, height); - hipFree(A_d); + HIP_CHECK(hipFree(A_d)); } TEST_CASE("Unit_hipMemset2D_Negative_InvalidSizes") {