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>
pull/2025/head
Ahmet Alp Balkan 2016-10-28 15:13:22 -07:00
parent 62e88f0fe7
commit 6d2a0bafcd
No known key found for this signature in database
GPG Key ID: F84A66B2CBC29F60
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ func (d *driver) GetContent(ctx context.Context, path string) ([]byte, error) {
return nil, err
}
defer blob.Close()
return ioutil.ReadAll(blob)
}