mirror of
https://github.com/distribution/distribution.git
synced 2025-06-26 07:22:56 +00:00
close the io.ReadCloser from storage driver
Backport PR #3309 to release/2.7 Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
6300300270
commit
3fe1d67ace
@ -18,6 +18,7 @@ func getContent(ctx context.Context, driver driver.StorageDriver, p string) ([]b
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer r.Close()
|
||||
|
||||
return readAllLimited(r, maxBlobGetSize)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user