Commit b1106790 authored by Paul Eggert's avatar Paul Eggert

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

Fixes: debbugs:17691
parent 6d9d9cde
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.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment