Commit 5bae0650 authored by David Herrmann's avatar David Herrmann Committed by Kristian Høgsberg
Browse files

connection: close pending incoming FDs on shutdown



Same problem as with outgoing FDs. We need to close these on shutdown,
otherwise we leak open file descriptors.
Signed-off-by: default avatarDavid Herrmann <dh.herrmann@googlemail.com>
parent 9bd41ed6
......@@ -190,6 +190,7 @@ void
wl_connection_destroy(struct wl_connection *connection)
{
close_fds(&connection->fds_out, -1);
close_fds(&connection->fds_in, -1);
close(connection->fd);
free(connection);
}
......
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