diff --git a/go/config/config.go b/go/config/config.go index 5d65da4b9..536eb0c1f 100644 --- a/go/config/config.go +++ b/go/config/config.go @@ -639,6 +639,7 @@ func read(fileName string) (*Configuration, error) { if err != nil { return Config, err } + defer file.Close() decoder := json.NewDecoder(file) err = decoder.Decode(Config) if err == nil {