From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 01/17] xenpaging: close xch handle in xenpaging_init error path Date: Mon, 06 Dec 2010 21:59:08 +0100 Message-ID: <20101206205908.238744151@aepfle.de> References: <20101206205907.848643876@aepfle.de> Return-path: Content-Disposition: inline; filename=xen-unstable.xenpaging.xenpaging_init.xc_interface_close.patch List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Just for correctness, close the xch handle in the error path. Signed-off-by: Olaf Hering --- tools/xenpaging/xenpaging.c | 1 + 1 file changed, 1 insertion(+) --- xen-unstable.hg-4.1.22459.orig/tools/xenpaging/xenpaging.c +++ xen-unstable.hg-4.1.22459/tools/xenpaging/xenpaging.c @@ -224,6 +224,7 @@ xenpaging_t *xenpaging_init(xc_interface err: if ( paging ) { + xc_interface_close(xch); if ( paging->mem_event.shared_page ) { munlock(paging->mem_event.shared_page, PAGE_SIZE);