SWDEV-548417 - Fix Memleaks in Graph (#713)
Co-authored-by: Anusha GodavarthySurya <Anusha.GodavarthySurya@amd.com>
This commit is contained in:
1 szülő
9f5b390db4
commit
ce560304a8
21 files changed
+78
-60
No files matched your search
@@ -1518,6 +1518,7 @@ hipError_t ihipGraphInstantiate(hip::GraphExec** pGraphExec, hip::Graph* graph,
|
||||
graph->clone(*pGraphExec, true);
|
||||
(*pGraphExec)->ScheduleNodes();
|
||||
if (false == (*pGraphExec)->TopologicalOrder()) {
|
||||
delete *pGraphExec;
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
graph->SetGraphInstantiated(true);
|
||||
|
||||
Reference in new issue
Block a user