Skip to content

Commit

Permalink
fix(inputs.ethtool): Close namespace (#12815)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj authored Mar 9, 2023
1 parent d063dc2 commit 603cdfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/ethtool/ethtool_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ func (c *CommandEthtool) Interfaces(includeNamespaces bool) ([]NamespacedInterfa
c.Log.Errorf("Could not get initial namespace: %s", err)
return nil, err
}
defer initialNamespace.Close()

// Gather the list of namespace names to from which to retrieve interfaces.
initialNamespaceIsNamed := false
Expand Down

0 comments on commit 603cdfb

Please sign in to comment.