mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user