Close DecompressStream after layer is downloaded
Signed-off-by: Leandro Motta Barros <lmb@stackedboxes.org>
This commit is contained in:
parent
a4a3efb75b
commit
bb21e0f191
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