fix(inputs.ethtool): Close namespace (#12815)
This commit is contained in:
parent
d063dc2e58
commit
603cdfb620
|
|
@ -243,6 +243,7 @@ func (c *CommandEthtool) Interfaces(includeNamespaces bool) ([]NamespacedInterfa
|
||||||
c.Log.Errorf("Could not get initial namespace: %s", err)
|
c.Log.Errorf("Could not get initial namespace: %s", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer initialNamespace.Close()
|
||||||
|
|
||||||
// Gather the list of namespace names to from which to retrieve interfaces.
|
// Gather the list of namespace names to from which to retrieve interfaces.
|
||||||
initialNamespaceIsNamed := false
|
initialNamespaceIsNamed := false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue