mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	close the file
Signed-off-by: zhukj <zhu.kunjia@zte.com.cn>
This commit is contained in:
		
							parent
							
								
									baa14c0e61
								
							
						
					
					
						commit
						cf3ef262b1
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -140,6 +140,7 @@ func (daemon *Daemon) verifyVolumesInfo(container *container.Container) error {
 | 
			
		|||
	if err != nil {
 | 
			
		||||
		return errors.Wrap(err, "could not open container config")
 | 
			
		||||
	}
 | 
			
		||||
	defer f.Close()
 | 
			
		||||
	var cv volumes
 | 
			
		||||
	if err := json.NewDecoder(f).Decode(&cv); err != nil {
 | 
			
		||||
		return errors.Wrap(err, "could not decode container config")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue