Skip to content

Commit bf24fb0

Browse files
committed
Close file r.log after used to release resources.
Signed-off-by: Danni Xia <[email protected]>
1 parent 1c5b384 commit bf24fb0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

runtime/v1/linux/proc/utils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func getLastRuntimeError(r *runc.Runc) (string, error) {
5656
if err != nil {
5757
return "", err
5858
}
59+
defer f.Close()
5960

6061
var (
6162
errMsg string

0 commit comments

Comments
 (0)