From 2f82bf3e3658594bb7de6e5eaf1c8f5766a35049 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Mon, 10 Oct 2022 21:22:01 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemcpy3DAsync.cc --- catch/unit/memory/hipMemcpy3DAsync.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catch/unit/memory/hipMemcpy3DAsync.cc b/catch/unit/memory/hipMemcpy3DAsync.cc index 1f690fa410..451da3e4fc 100644 --- a/catch/unit/memory/hipMemcpy3DAsync.cc +++ b/catch/unit/memory/hipMemcpy3DAsync.cc @@ -109,10 +109,10 @@ void Memcpy3DAsync::AllocateMemory() { */ template void Memcpy3DAsync::DeAllocateMemory() { - hipFreeArray(arr); - hipFreeArray(arr1); + HIP_CHECK(hipFreeArray(arr)); + HIP_CHECK(hipFreeArray(arr1)); free(hData); - hipStreamDestroy(stream); + HIP_CHECK(hipStreamDestroy(stream)); } /*