* xterm.c (x_delete_terminal): Plug file descriptor leak.

Fixes: debbugs:17691
This commit is contained in:
Paul Eggert 2014-08-07 07:17:03 -07:00
parent 6d9d9cde2f
commit b110679002
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2014-08-07 Paul Eggert <eggert@cs.ucla.edu>
* xterm.c (x_delete_terminal): Plug file descriptor leak (Bug#17691).
2014-08-07 Reuben Thomas <rrt@sc3d.org>
Refer to MS-DOS using the same name everywhere.

View file

@ -11329,7 +11329,10 @@ x_delete_terminal (struct terminal *terminal)
/* No more input on this descriptor. */
if (0 <= dpyinfo->connection)
delete_keyboard_wait_descriptor (dpyinfo->connection);
{
delete_keyboard_wait_descriptor (dpyinfo->connection);
emacs_close (dpyinfo->connection);
}
/* Mark as dead. */
dpyinfo->display = NULL;