Browse Source

Merge pull request #21313 from Microsoft/sjw/logs_fix

Fixing logs file handle leak.
David Calavera 9 years ago
parent
commit
be8459c248
1 changed files with 1 additions and 0 deletions
  1. 1 0
      daemon/logs.go

+ 1 - 0
daemon/logs.go

@@ -84,6 +84,7 @@ func (daemon *Daemon) ContainerLogs(containerName string, config *backend.Contai
 		case msg, ok := <-logs.Msg:
 			if !ok {
 				logrus.Debugf("logs: end stream")
+				logs.Close()
 				return nil
 			}
 			logLine := msg.Line