From 47df29a9d09733bf7cd57f1024a1db63b2d28e22 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 11:58:41 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in MemUtils.hh --- tests/catch/unit/memory/MemUtils.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/catch/unit/memory/MemUtils.hh b/tests/catch/unit/memory/MemUtils.hh index a05588c3b7..b80343d004 100644 --- a/tests/catch/unit/memory/MemUtils.hh +++ b/tests/catch/unit/memory/MemUtils.hh @@ -344,10 +344,10 @@ static inline void memsetCheck(T* aPtr, size_t value, memType memType, MultiDDat template static inline 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; default: // for host and device registered HIP_CHECK(hipHostUnregister(aPtr));