Skip to content

Commit

Permalink
[Backport 7.58.x] Fix memory leak caused by container check (#29355)
Browse files Browse the repository at this point in the history
Co-authored-by: sblumenthal <steven.blumenthal@datadoghq.com>
  • Loading branch information
agent-platform-auto-pr[bot] and sblumenthal authored Sep 14, 2024
1 parent 39e8925 commit 692dae1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (pn *ProcessorNetwork) processGroupedContainerNetwork() {
for _, containerNetwork := range pn.ungroupedContainerNetwork {
pn.generateNetworkMetrics(containerNetwork.tags, containerNetwork.stats)
}
pn.ungroupedContainerNetwork = nil

for _, containerNetworks := range pn.groupedContainerNetwork {
// If we have multiple containers, tagging with container tag is incorrect as the metrics refer to whole isolation group.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Each section from every release note are combined when the
# CHANGELOG.rst is rendered. So the text needs to be worded so that
# it does not depend on any information only available in another
# section. This may mean repeating some details, but each section
# must be readable independently of the other.
#
# Each section note must be formatted as reStructuredText.
---
fixes:
- |
Fixes memory leak caused by container check.

0 comments on commit 692dae1

Please sign in to comment.