mirror of
https://github.com/distribution/distribution.git
synced 2025-09-12 13:23:32 +00:00
close the io.ReadCloser from storage drive
Signed-off-by: sangluo <sangluo@pinduoduo.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user