wayland-server: fix fd leak on error path
authorDylan Noblesmith <nobled@dreamwidth.org>
Sat, 16 Jun 2012 22:47:42 +0000 (22:47 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Sat, 30 Jun 2012 19:37:42 +0000 (19:37 +0000)
commit94752574592a59c74340816063ad12a18433a75d
treea087985b44c87df420ce768b951c2488dbc13392
parentcadd9992921c92c4cf4c72ee40ff5ab4d44066cd
wayland-server: fix fd leak on error path

And restructure get_socket_lock() so it's clearer that it's
allocating a new file descriptor.

Uncovered by an upcoming test.
src/wayland-server.c