Skip to content

Commit

Permalink
fix: libcontainer/handler.go potential memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
poppo committed Jan 10, 2024
1 parent 04006e5 commit 8b7cb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/libcontainer/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ func scanInterfaceStats(netStatsFile string) ([]info.InterfaceStats, error) {
return nil, fmt.Errorf("invalid interface stats line: %v", line)
}

devName := fields[0]
devName := strings.Clone(fields[0])
if isIgnoredDevice(devName) {
continue
}
Expand Down

0 comments on commit 8b7cb5d

Please sign in to comment.