From 9d302fa7bbce88e710b01d787b91f8ed9121246a Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 09:14:00 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemsetNegative.cc [ROCm/hip commit: eda2e499b31612054d36957c9dfa8d0461a7a60f] --- projects/hip/tests/catch/unit/memory/hipMemsetNegative.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") {