server: fix error handling when adding socket
server: fix error handling when adding socket

When some function during adding socket fails, it must clean
everything it set or we can get funky errors.

This patch fixes:
http://lists.freedesktop.org/archives/wayland-devel/2014-August/016331.html

Signed-off-by: Marek Chalupa <a05df156a69ad59faa9af9b666ef78009594c145@gmail.com>
Reviewed-by: Pekka Paalanen <0f6ae7001e34c37b02fb2c1c2573ddf8f442136a@collabora.co.uk>

mchalupa/wayland,abooij/wayland,mchalupa/wayland,eyolfson/wayland,abooij/wayland,eyolfson/wayland,abooij/wayland,eyolfson/wayland,sir-murray/wayland,sir-murray/wayland,bitfactor/wayland,bitfactor/wayland,tulcod/wayland,tulcod/wayland,mchalupa/wayland,tulcod/wayland,sir-murray/wayland,bitfactor/wayland