mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #45050 from lmbarros/close-reader
Close DecompressStream after layer is downloaded
This commit is contained in:
@@ -344,6 +344,7 @@ func (ldm *LayerDownloadManager) makeDownloadFunc(descriptor DownloadDescriptor,
|
||||
d.err = fmt.Errorf("could not get decompression stream: %v", err)
|
||||
return
|
||||
}
|
||||
defer inflatedLayerData.Close()
|
||||
|
||||
var src distribution.Descriptor
|
||||
if fs, ok := descriptor.(distribution.Describable); ok {
|
||||
|
||||
Reference in New Issue
Block a user