mirror of
https://github.com/distribution/distribution.git
synced 2025-08-26 18:39:36 +00:00
Merge pull request #3370 from wy65701436/release/2.7-cp-3309
[cherry pick]close the io.ReadCloser from storage driver
This commit is contained in:
commit
cc866a5bf3
@ -18,6 +18,7 @@ func getContent(ctx context.Context, driver driver.StorageDriver, p string) ([]b
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer r.Close()
|
||||||
|
|
||||||
return readAllLimited(r, maxBlobGetSize)
|
return readAllLimited(r, maxBlobGetSize)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user