diff --git a/graph/push.go b/graph/push.go index 6ae2d670d6..290c1d0f5e 100644 --- a/graph/push.go +++ b/graph/push.go @@ -392,6 +392,8 @@ func (s *TagStore) pushV2Image(r *registry.Session, img *image.Image, endpoint * if err != nil { return err } + defer arch.Close() + tf, err := s.graph.newTempFile() if err != nil { return err