storagedriver/azure: close leaking response body
In GetContent() we read the bytes from a blob but do not close the underlying response body. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>master
							parent
							
								
									62e88f0fe7
								
							
						
					
					
						commit
						6d2a0bafcd
					
				| 
						 | 
					@ -111,6 +111,7 @@ func (d *driver) GetContent(ctx context.Context, path string) ([]byte, error) {
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						defer blob.Close()
 | 
				
			||||||
	return ioutil.ReadAll(blob)
 | 
						return ioutil.ReadAll(blob)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue