mirror of
https://github.com/syncthing/syncthing.git
synced 2026-05-18 13:52:00 -04:00
lib/ur: Plug file descriptor leak in Linux memorySize (#7266)
This commit is contained in:
@@ -18,6 +18,7 @@ func memorySize() int64 {
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
s := bufio.NewScanner(f)
|
||||
if !s.Scan() {
|
||||
|
||||
Reference in New Issue
Block a user