Close file after os.Open()

This commit is contained in:
FengyunPan
2017-05-22 21:51:11 +08:00
parent 5dd56c9b1e
commit 287f703d3a
3 changed files with 3 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ func setupProviderConfig() error {
framework.Logf("Couldn't open cloud provider configuration %s: %#v",
cloudConfig.ConfigFile, err)
}
defer config.Close()
cloudConfig.Provider, err = azure.NewCloud(config)
}