diff options
Diffstat (limited to 'tools/console/daemon/io.c')
-rw-r--r-- | tools/console/daemon/io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 7688a1a9e4..2fd9b523d8 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -747,6 +747,11 @@ static void cleanup_domain(struct domain *d) { domain_close_tty(d); + if (d->log_fd != -1) { + close(d->log_fd); + d->log_fd = -1; + } + free(d->buffer.data); d->buffer.data = NULL; |