Fixes memory leak
This commit is contained in:
parent
c14b242c60
commit
5e1c2fa23b
|
@ -407,6 +407,7 @@ func getProcInodes(root string, pid int32, max int) (map[string][]inodeMap, erro
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ret, nil
|
return ret, nil
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
files, err := f.Readdir(max)
|
files, err := f.Readdir(max)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ret, nil
|
return ret, nil
|
||||||
|
|
Loading…
Reference in New Issue