diff --git a/storage/pkg/chunked/storage_linux.go b/storage/pkg/chunked/storage_linux.go index ce5d283349..611a9dd881 100644 --- a/storage/pkg/chunked/storage_linux.go +++ b/storage/pkg/chunked/storage_linux.go @@ -1185,6 +1185,11 @@ func parseBooleanPullOption(storeOpts *storage.StoreOptions, name string, def bo func (c *chunkedDiffer) ApplyDiff(dest string, options *archive.TarOptions) (graphdriver.DriverWithDifferOutput, error) { defer c.layersCache.release() + defer func() { + if c.zstdReader != nil { + c.zstdReader.Close() + } + }() bigData := map[string][]byte{ bigDataKey: c.manifest,