Merge pull request #45050 from lmbarros/close-reader
Close DecompressStream after layer is downloaded
This commit is contained in:
commit
68fe202f06
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue