From 7fc4b7d6f45efc9df7244d89d010e5baad188ab8 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 11:15:26 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipDrvMemcpy3D.cc --- tests/catch/unit/memory/hipDrvMemcpy3D.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/catch/unit/memory/hipDrvMemcpy3D.cc b/tests/catch/unit/memory/hipDrvMemcpy3D.cc index b70c8f74b1..0b524655a9 100644 --- a/tests/catch/unit/memory/hipDrvMemcpy3D.cc +++ b/tests/catch/unit/memory/hipDrvMemcpy3D.cc @@ -501,8 +501,8 @@ void DrvMemcpy3D::HostArray_DrvMemcpy3D(bool device_context_change) { /* DeAllocating the memory */ template void DrvMemcpy3D::DeAllocateMemory() { - hipArrayDestroy(arr); - hipArrayDestroy(arr1); + HIP_CHECK(hipArrayDestroy(arr)); + HIP_CHECK(hipArrayDestroy(arr1)); free(hData); }