aboutsummaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
Diffstat (limited to 'metrics')
-rw-r--r--metrics/disk_linux.go1
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