--- tools/xenstore/xs.c.orig 2010-11-10 13:18:05.000000000 +0000 +++ tools/xenstore/xs.c 2010-11-10 13:18:31.000000000 +0000 @@ -285,6 +285,7 @@ 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)