Fix memory leak for kqueue: shutdown kqueue correctly
authorChengwei Yang <chengwei.yang@intel.com>
Tue, 3 Dec 2013 12:47:54 +0000 (20:47 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 6 Jan 2014 15:45:52 +0000 (15:45 +0000)
commit4e8032be4e6608163757b2ab926e44e5f784807d
tree030490c061ae31cbad26b1ec8c0c8b2be7b035fe
parent653790c9858180baf4259b38c7c9d5196e39114b
Fix memory leak for kqueue: shutdown kqueue correctly

There are memory blocks leak when doing bus-test, both dispatch-sha1 and
dispatch test cases complain memory blocks leak.

This patch also fix fd leaks.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69332
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/dir-watch-kqueue.c