diff options
Diffstat (limited to 'metrics/disk_linux.go')
-rw-r--r-- | metrics/disk_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/metrics/disk_linux.go b/metrics/disk_linux.go index e0c8a1a3a..8967d490e 100644 --- a/metrics/disk_linux.go +++ b/metrics/disk_linux.go @@ -34,6 +34,7 @@ func ReadDiskStats(stats *DiskStats) error { if err != nil { return err } + defer inf.Close() in := bufio.NewReader(inf) // Iterate over the IO counter, and extract what we need |