aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/container_attach.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/container_attach.go b/libpod/container_attach.go
index 66d5ec236..46b306133 100644
--- a/libpod/container_attach.go
+++ b/libpod/container_attach.go
@@ -61,6 +61,7 @@ func (c *Container) attachContainerSocket(resize <-chan remotecommand.TerminalSi
if err != nil {
return errors.Wrapf(err, "failed to open container ctl file: %v")
}
+ defer controlFile.Close()
kubecontainer.HandleResizing(resize, func(size remotecommand.TerminalSize) {
logrus.Debugf("Received a resize event: %+v", size)