diff --git a/catch/unit/memory/hipDrvMemcpy3D.cc b/catch/unit/memory/hipDrvMemcpy3D.cc index b70c8f74b1..0b524655a9 100644 --- a/catch/unit/memory/hipDrvMemcpy3D.cc +++ b/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); }