dial-stdio: Close the connection
This was leaking the fd. Signed-off-by: Ian Campbell <ijc@docker.com> (cherry picked from commit186e7456ac) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit:75e9075591Component: cli
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
c2cf227965
commit
9d70293b5b
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user