diff options
Diffstat (limited to 'lib/ur/memsize_linux.go')
-rw-r--r-- | lib/ur/memsize_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ur/memsize_linux.go b/lib/ur/memsize_linux.go index 2be03aa95a..3ea8d066a7 100644 --- a/lib/ur/memsize_linux.go +++ b/lib/ur/memsize_linux.go @@ -18,6 +18,7 @@ func memorySize() int64 { if err != nil { return 0 } + defer f.Close() s := bufio.NewScanner(f) if !s.Scan() { |