From 96e1ea007f20bf15fc96c0746fcac27a5922e44d Mon Sep 17 00:00:00 2001 From: Rahul Manocha Date: Fri, 27 Sep 2024 22:02:54 +0000 Subject: [PATCH] SWDEV-488214 - Fix MemLeak in hipIpcMemAccess_Semaphores test Change-Id: Iaf123e88cf3ab4e50403a26355a9440c414022ae [ROCm/hip-tests commit: 1d01cb0b18e0f820700af6ac64e481f423234817] --- projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc b/projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc index 74b9f71612..f77d5bf635 100644 --- a/projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc +++ b/projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc @@ -178,6 +178,8 @@ TEST_CASE("Unit_hipIpcMemAccess_Semaphores") { int rFlag = 0; waitpid(pid, &rFlag, 0); REQUIRE(shrd_mem->IfTestPassed == true); + HipTest::freeArrays(nullptr, nullptr, nullptr, + A_h, nullptr, C_h, false); } /**