Skip to content

Commit

Permalink
Close file r.log after used to release resources.
Browse files Browse the repository at this point in the history
Signed-off-by: Danni Xia <xiadanni1@huawei.com>
  • Loading branch information
Vanient committed Jun 3, 2019
1 parent 1c5b384 commit bf24fb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/v1/linux/proc/utils.go
Expand Up @@ -56,6 +56,7 @@ func getLastRuntimeError(r *runc.Runc) (string, error) {
if err != nil {
return "", err
}
defer f.Close()

var (
errMsg string
Expand Down

0 comments on commit bf24fb0

Please sign in to comment.