diff --git a/config.go b/config.go index 4a42c3b..573c74c 100644 --- a/config.go +++ b/config.go @@ -18,6 +18,7 @@ func readConfig() (*config, error) { if err != nil { return nil, err } + defer open.Close() d := yaml.NewDecoder(open) d.KnownFields(true)