Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
close the io.ReadCloser from storage driver
Backport PR #3309 to release/2.7

Signed-off-by: Wang Yan <wangyan@vmware.com>
  • Loading branch information
wy65701436 committed Feb 23, 2021
1 parent 6300300 commit 3fe1d67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions registry/storage/io.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3fe1d67

Please sign in to comment.