[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v3] Leaking of xs_fd fixed in Xenstore



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 <comethalley61@xxxxxxxxx>
---
 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@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.