Skip to content

Commit

Permalink
Merge pull request moby#4902 from sipsma/fix-progress-leak
Browse files Browse the repository at this point in the history
progress: fix leak of pipe goroutine from MultiReader
  • Loading branch information
tonistiigi authored May 7, 2024
2 parents 7210b08 + 04745a7 commit b3cee61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/progress/multireader.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (mr *MultiReader) Reader(ctx context.Context) Reader {
mr.mu.Lock()
defer mr.mu.Unlock()
delete(mr.writers, w)
closeWriter(context.Cause(ctx))
}()

if !mr.initialized {
Expand Down

0 comments on commit b3cee61

Please sign in to comment.