mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-02 22:50:18 +00:00
lib/ur: Plug file descriptor leak in Linux memorySize (#7266)
This commit is contained in:
parent
0b193b76c2
commit
f6fac3e949
@ -18,6 +18,7 @@ func memorySize() int64 {
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
s := bufio.NewScanner(f)
|
||||
if !s.Scan() {
|
||||
|
Loading…
Reference in New Issue
Block a user