From f165e429339d54b76f16a1cfbd33334ffca69a1d Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 12:00:23 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemsetSync.cc --- catch/unit/memory/hipMemsetSync.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catch/unit/memory/hipMemsetSync.cc b/catch/unit/memory/hipMemsetSync.cc index 6770a6e16c..2a55a2a0a3 100644 --- a/catch/unit/memory/hipMemsetSync.cc +++ b/catch/unit/memory/hipMemsetSync.cc @@ -379,10 +379,10 @@ void memsetCheck(T* aPtr, size_t value, memSetType memsetType, MultiDData& data, template void freeStuff(T* aPtr, allocType type) { switch (type) { case allocType::deviceMalloc: - hipFree(aPtr); + HIP_CHECK(hipFree(aPtr)); break; case allocType::hostMalloc: - hipHostFree(aPtr); + HIP_CHECK(hipHostFree(aPtr)); break; case allocType::hostRegisted: HIP_CHECK(hipHostUnregister(aPtr));