From 777ed57e6d6092e8a40be20b1a5c40e4ff188c96 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 --- catch/unit/memory/hipMemsetNegative.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch/unit/memory/hipMemsetNegative.cc b/catch/unit/memory/hipMemsetNegative.cc index 82a0c2879d..929ff2e3c6 100644 --- a/catch/unit/memory/hipMemsetNegative.cc +++ b/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") {