diff --git a/cli/resource/process.go b/cli/resource/process.go index c7fe9bf9a..7651dd76d 100644 --- a/cli/resource/process.go +++ b/cli/resource/process.go @@ -99,6 +99,7 @@ func ProcessFile(input string, recurse bool) ([]*types.Wrapper, error) { if err != nil { return err } + defer f.Close() res, err := Parse(f) if err != nil { return fmt.Errorf("in %s: %s", input, err)