The success path isn't closed xs_fd in build function in init-xenstore-domain.c 
. Added that line before return 0. 

Signed-off-by: Lasya Venneti <comethalle...@gmail.com>
---
 tools/xenstore/init-xenstore-domain.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/xenstore/init-xenstore-domain.c 
b/tools/xenstore/init-xenstore-domain.c
index 82ddabb..0397431 100644
--- a/tools/xenstore/init-xenstore-domain.c
+++ b/tools/xenstore/init-xenstore-domain.c
@@ -75,6 +75,7 @@ static int build(xc_interface *xch, int argc, char** argv)
        rv = xc_domain_unpause(xch, domid);
        if (rv) goto err;
 
+       close(xs_fd);
        return 0;
 
 err:
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to