Skip to content

Commit

Permalink
Merge pull request #57 from rphillips/fix_leak
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhang authored Dec 5, 2022
2 parents 0b356b1 + 1759cfc commit db7cbd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/cgroups/cgroups2.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func (cg *CGroups2) CPUQuota() (float64, bool, error) {
}
return -1, false, err
}
defer cpuMaxParams.Close()

scanner := bufio.NewScanner(cpuMaxParams)
if scanner.Scan() {
Expand Down

0 comments on commit db7cbd0

Please sign in to comment.