mirror of https://github.com/docker/cli.git
dial-stdio: Close the connection
This was leaking the fd. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
8919bbf04d
commit
186e7456ac
|
@ -34,6 +34,7 @@ func runDialStdio(dockerCli command.Cli) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "failed to open the raw stream connection")
|
return errors.Wrap(err, "failed to open the raw stream connection")
|
||||||
}
|
}
|
||||||
|
defer conn.Close()
|
||||||
|
|
||||||
var connHalfCloser halfCloser
|
var connHalfCloser halfCloser
|
||||||
switch t := conn.(type) {
|
switch t := conn.(type) {
|
||||||
|
|
Loading…
Reference in New Issue