Fixes memory leak

This commit is contained in:
Toshi Piazza 2017-02-22 02:53:45 -05:00
parent c14b242c60
commit 5e1c2fa23b
1 changed files with 1 additions and 0 deletions

View File

@ -407,6 +407,7 @@ func getProcInodes(root string, pid int32, max int) (map[string][]inodeMap, erro
if err != nil {
return ret, nil
}
defer f.Close()
files, err := f.Readdir(max)
if err != nil {
return ret, nil