Skip to content

Commit 7e1d789

Browse files
committed
Revert "fix memory leak with authorization plugins"
This reverts commit aacbc4b.
1 parent a212389 commit 7e1d789

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

api/server/router/container/copy.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import (
1212
"github.com/docker/docker/api/server/httputils"
1313
"github.com/docker/docker/api/types"
1414
"github.com/docker/docker/api/types/versions"
15-
"github.com/docker/docker/pkg/ioutils"
16-
"github.com/docker/docker/pkg/pools"
1715
"golang.org/x/net/context"
1816
)
1917

@@ -105,9 +103,7 @@ func (s *containerRouter) getContainersArchive(ctx context.Context, w http.Respo
105103
}
106104

107105
w.Header().Set("Content-Type", "application/x-tar")
108-
output := ioutils.NewWriteFlusher(w)
109-
defer output.Close()
110-
_, err = pools.Copy(output, tarArchive)
106+
_, err = io.Copy(w, tarArchive)
111107

112108
return err
113109
}

0 commit comments

Comments
 (0)