# HG changeset patch # User Keir Fraser # Date 1284535198 -3600 # Node ID 86b99b9ad6ef9492b66c98e2377105f3ea584cbf # Parent 89605b79f56529d34d963d0d91c67c46294a7b7c 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 diff -r 89605b79f565 -r 86b99b9ad6ef tools/xenstore/xs.c --- a/tools/xenstore/xs.c Mon Sep 13 17:51:50 2010 +0100 +++ b/tools/xenstore/xs.c Wed Sep 15 08:19:58 2010 +0100 @@ -285,6 +285,8 @@ 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)