diff --git a/tools/xenstore/xs.c b/tools/xenstore/xs.c index 2edabee4d0..8dc40eaf72 100644 --- a/tools/xenstore/xs.c +++ b/tools/xenstore/xs.c @@ -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)