merge branch 'pr-3012'

Kir Kolyshkin (1):
  libct/cg/fs: don't forget to close a file

LGTMs: AkihiroSuda cyphar
Closes #3012
This commit is contained in:
Aleksa Sarai
2021-06-09 15:02:00 +10:00
+1
View File
@@ -255,6 +255,7 @@ func getPageUsageByNUMA(cgroupPath string) (cgroups.PageUsageByNUMA, error) {
} else if err != nil {
return stats, err
}
defer file.Close()
// File format is documented in linux/Documentation/cgroup-v1/memory.txt
// and it looks like this: