From bf9f14d2eef94d81117f92d6120daff4ff72305a Mon Sep 17 00:00:00 2001 From: Vladana Stojiljkovic Date: Thu, 3 Oct 2024 18:05:06 +0200 Subject: [PATCH] SWDEV-489376 - Fix Unit_hipLaunchHostFunc_Graph memory leaks Change-Id: I209f686cb13f05d6b0b790aaa7ab8b93555df3b1 --- catch/unit/stream/hipLaunchHostFunc.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/catch/unit/stream/hipLaunchHostFunc.cc b/catch/unit/stream/hipLaunchHostFunc.cc index a479632e31..29dc988133 100644 --- a/catch/unit/stream/hipLaunchHostFunc.cc +++ b/catch/unit/stream/hipLaunchHostFunc.cc @@ -542,6 +542,9 @@ TEST_CASE("Unit_hipLaunchHostFunc_Graph") { HIP_CHECK(hipGraphExecDestroy(graphExec)); HIP_CHECK(hipGraphDestroy(graph)); + HIP_CHECK(hipEventDestroy(forkStreamEvent)); + HIP_CHECK(hipEventDestroy(memsetEvent1)); + HIP_CHECK(hipEventDestroy(memsetEvent2)); HIP_CHECK(hipStreamDestroy(stream1)); HIP_CHECK(hipStreamDestroy(stream2)); HIP_CHECK(hipStreamDestroy(stream3)); @@ -554,4 +557,5 @@ TEST_CASE("Unit_hipLaunchHostFunc_Graph") { HIP_CHECK(hipFree(inputVec_d)); HIP_CHECK(hipFree(outputVec_d)); HIP_CHECK(hipFree(result_d)); + free(inputVec_h); }