From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lasya Subject: [PATCH v3] Leaking of xs_fd fixed in Xenstore Date: Wed, 28 Oct 2015 05:43:03 +0530 Message-ID: <1445991183-9208-1-git-send-email-comethalley61@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zr38D-0007vR-Gj for xen-devel@lists.xenproject.org; Tue, 27 Oct 2015 12:13:37 +0000 Received: by pabla5 with SMTP id la5so28344231pab.0 for ; Tue, 27 Oct 2015 05:13:34 -0700 (PDT) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org, george.dunlap@citrix.com, lars.kurth@citrix.com, dario.faggioli@citrix.com, wei.liu2@citrix.com, ian.campbell@citrix.com Cc: Lasya List-Id: xen-devel@lists.xenproject.org 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 --- 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