dial-stdio: Close the connection

This was leaking the fd.

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2019-03-12 14:52:22 +00:00
parent 8919bbf04d
commit 186e7456ac
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ func runDialStdio(dockerCli command.Cli) error {
if err != nil {
return errors.Wrap(err, "failed to open the raw stream connection")
}
defer conn.Close()
var connHalfCloser halfCloser
switch t := conn.(type) {