mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Currently, the resources associated with the io.Reader returned by TarStream are only freed when it is read until EOF. This means that partial uploads or exports (for example, in the case of a full disk or severed connection) can leak a goroutine and open file. This commit changes TarStream to return an io.ReadCloser. Resources are freed when Close is called. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Upstream-commit: 21278efaee563b356851a530b08b0537fee095d7 Component: engine