Merge pull request #624 from hopkings2008/master
add configuration file close after it is parsed.
This commit is contained in:
commit
4dc0c5e0c5
@ -152,6 +152,8 @@ func resolveConfiguration() (*configuration.Configuration, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer fp.Close()
|
||||||
|
|
||||||
config, err := configuration.Parse(fp)
|
config, err := configuration.Parse(fp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error parsing %s: %v", configurationPath, err)
|
return nil, fmt.Errorf("error parsing %s: %v", configurationPath, err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user