server: Fix possible wl_display_add_socket_fd memleak
authorSergi Granell <xerpi.g.12@gmail.com>
Mon, 1 Feb 2016 18:35:51 +0000 (19:35 +0100)
committerBryce Harrington <bryce@bryceharrington.org>
Mon, 1 Feb 2016 23:53:48 +0000 (15:53 -0800)
commitac36082813c459e64ae1f564002a7cadfa0a7637
treeb82fedcb672e5df31874a89e81e0f9d64f4c48fe
parent14b76a0e24c988334c18f477572a556ba005b182
server: Fix possible wl_display_add_socket_fd memleak

If wl_event_loop_add_fd failed, the fail path didn't free the
newly allocated struct wl_socket.
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
src/wayland-server.c