SWDEV-485763 - Fix memory leaks in various unit tests
Fix memory leaks by adding missing destroy calls for
events, streams, and graphs at the end of tests.
Ensure that every test case executes destroy calls,
regardless of whether it passes or fails.
Change-Id: I814e35c528d90ed2abb34d77377f1a7fd3f1f11c
[ROCm/hip-tests commit: 9cffda4ebb]
Esse commit está contido em:
1 pai
d9482cf69c
commit
fe9860bd47
33 files changed
+142
-38
No files matched your search
@@ -284,6 +284,7 @@ static void hipGraphDebugDotPrint_Functional(const char* fName,
|
||||
free(mem_h);
|
||||
HIP_CHECK(hipFree(mem_d));
|
||||
HipTest::freeArrays(A_d, B_d, C_d, A_h, B_h, C_h, false);
|
||||
HIP_CHECK(hipEventDestroy(event));
|
||||
HIP_CHECK(hipGraphExecDestroy(graphExec));
|
||||
HIP_CHECK(hipGraphDestroy(graph));
|
||||
HIP_CHECK(hipGraphDestroy(childGraph));
|
||||
|
||||
Reference in new issue
Bloquear um usuário