Skip to content

Commit

Permalink
Merge pull request #22404 from testwill/close_file
Browse files Browse the repository at this point in the history
fix: close resource file
  • Loading branch information
openshift-merge-bot[bot] authored May 21, 2024
2 parents 22ca67a + 120660e commit 4f31335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libpod/oci_conmon_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ func generateResourceFile(res *spec.LinuxResources) (string, []string, error) {
if err != nil {
return "", nil, err
}
defer f.Close()

j, err := json.Marshal(res)
if err != nil {
Expand Down

1 comment on commit 4f31335

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.