SWDEV-549705 - Fixed memleak in Unit_hipExtLaunchMultiKernelMultiDevice_Functional (#521)

Co-authored-by: Ioannis Assiouras <Ioannis.Assiouras@amd.com>
This commit is contained in:
systems-assistant[bot]
2025-09-16 12:18:59 -07:00
committed by GitHub
parent 5f2ef0fc4f
commit ce9fe34c92
@@ -131,4 +131,14 @@ TEST_CASE("Unit_hipExtLaunchMultiKernelMultiDevice_Functional") {
REQUIRE(fabs(C_h[i] - (A_h[i] * A_h[i])) < 0.00000000001);
}
}
for (int i = 0; i < nGpu; i++) {
HIP_CHECK(hipFree(A_d[i]));
HIP_CHECK(hipFree(C_d[i]));
HIP_CHECK(hipStreamDestroy(stream[i]));
}
free(launchParamsList);
free(A_h);
free(C_h);
}