From 20d2e730aee71af69461b007e4e8c62e596bf87c 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 [ROCm/hip-tests commit: a152a895b6bf4ab493e864b116d2a4dc1b62b155] --- projects/hip-tests/catch/unit/memory/MemUtils.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/memory/MemUtils.hh b/projects/hip-tests/catch/unit/memory/MemUtils.hh index a05588c3b7..b80343d004 100644 --- a/projects/hip-tests/catch/unit/memory/MemUtils.hh +++ b/projects/hip-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));