SWDEV-533754 - Fixed mem leak in capturing gpu packets (#365)
[ROCm/clr commit: f094d16157]
This commit is contained in:
1 parent
40999496c1
commit
b443903ad8
1 file changed
+1
@@ -249,6 +249,7 @@ class GraphNode : public hipGraphNodeDOTAttribute {
|
||||
return status;
|
||||
}
|
||||
|
||||
std::for_each(gpuPackets_.begin(), gpuPackets_.end(), [](auto p) { delete[] p; });
|
||||
gpuPackets_.clear();
|
||||
for (auto& command : commands_) {
|
||||
command->setPktCapturingState(true, &gpuPackets_, kernArgMgr, &capturedKernelName_);
|
||||
|
||||
Reference in new issue
Block a user