mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
fix: close resource file
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user