_dbus_loop_new: don't crash on OOM allocating socket set
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 2 Nov 2011 15:50:45 +0000 (15:50 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 2 Nov 2011 15:50:45 +0000 (15:50 +0000)
commit3f4ed9def33c359142c340f28345755ca37663f2
tree7e4e9297c47b40e1021c6b9f6df050e3b1e3858b
parent78bf46ae8ca0ebdc4c4ba5c93588638f836e4d9f
_dbus_loop_new: don't crash on OOM allocating socket set

Also don't leak the socket set if allocating watches failed, or
vice versa. Based on review feedback from wjt.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33337
dbus/dbus-mainloop.c