xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] Leaking of xs_fd fixed in Xenstore
@ 2015-10-28  0:13 Lasya
  2015-10-28  1:03 ` Dario Faggioli
  0 siblings, 1 reply; 2+ messages in thread
From: Lasya @ 2015-10-28  0:13 UTC (permalink / raw)
  To: xen-devel, george.dunlap, lars.kurth, dario.faggioli, wei.liu2,
	ian.campbell
  Cc: Lasya

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@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-28  1:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28  0:13 [PATCH v3] Leaking of xs_fd fixed in Xenstore Lasya
2015-10-28  1:03 ` Dario Faggioli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).