diff --git a/collector/btrfs_linux.go b/collector/btrfs_linux.go index b5642b331a..f1490541a9 100644 --- a/collector/btrfs_linux.go +++ b/collector/btrfs_linux.go @@ -135,6 +135,7 @@ func (c *btrfsCollector) getIoctlStats() (map[string]*btrfsIoctlFsStats, error) "err", err) continue } + defer fs.Close() fsInfo, err := fs.Info() if err != nil {