add configuration file close after it is parsed.
Signed-off-by: yuzou <zouyu7@huawei.com>master
							parent
							
								
									9b75807a0b
								
							
						
					
					
						commit
						8a89040247
					
				|  | @ -152,6 +152,8 @@ func resolveConfiguration() (*configuration.Configuration, error) { | |||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	defer fp.Close() | ||||
| 
 | ||||
| 	config, err := configuration.Parse(fp) | ||||
| 	if err != nil { | ||||
| 		return nil, fmt.Errorf("error parsing %s: %v", configurationPath, err) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue