SWDEV-548417 - Fix Memleaks in Graph (#973)

Command enqueued on the graph internal stream are not released add stream during graphExec release

Co-authored-by: Rahul Manocha <rmanocha@amd.com>
This commit is contained in:
Godavarthy Surya, Anusha
2025-09-19 17:45:01 +05:30
committato da GitHub
parent ce560304a8
commit 538528d1e5
@@ -818,6 +818,7 @@ class GraphExec : public amd::ReferenceCountedObject, public Graph {
~GraphExec() {
for (auto stream : parallel_streams_) {
if (stream != nullptr) {
stream->finish();
constexpr bool kForceDestroy = true;
hip::Stream::Destroy(stream, kForceDestroy);
}