mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix fd leak in xenstore
Missing from commit 'libxl: Backported stuff from unstable' Without this change, xs_daemon_open/xs_daemon_close will leak file descriptors. Signed-off-by: Olaf Hering <olaf@aepfle.de>
This commit is contained in:
1 parent
0c9873cd46
commit
34652da1b4
1 file changed
+2
@@ -285,6 +285,8 @@ void xs_daemon_close(struct xs_handle *h)
|
||||
mutex_unlock(&h->request_mutex);
|
||||
mutex_unlock(&h->reply_mutex);
|
||||
mutex_unlock(&h->watch_mutex);
|
||||
|
||||
close_fds_free(h);
|
||||
}
|
||||
|
||||
static bool read_all(int fd, void *data, unsigned int len)
|
||||
|
||||