SWDEV-489376 - Fix Unit_hipLaunchHostFunc_Graph memory leaks

Change-Id: I209f686cb13f05d6b0b790aaa7ab8b93555df3b1


[ROCm/hip-tests commit: bf9f14d2ee]
This commit is contained in:
Vladana Stojiljkovic committed 2024-12-09 04:01:22 -05:00
1 parent 4957a7b5cd
commit d6b1d6a264
1 file changed
+4
@@ -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);
}