From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 05/17] xenpaging: remove duplicate xc_interface_close call Date: Mon, 06 Dec 2010 21:59:12 +0100 Message-ID: <20101206205909.825749317@aepfle.de> References: <20101206205907.848643876@aepfle.de> Return-path: Content-Disposition: inline; filename=xen-unstable.xenpaging.xc_handle.double_free.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 Fix double-free in xc_interface_close() because xenpaging_teardown() releases the *xch already. Remove second xc_interface_close() call. Signed-off-by: Olaf Hering --- tools/xenpaging/xenpaging.c | 2 -- 1 file changed, 2 deletions(-) --- xen-unstable.hg-4.1.22459.orig/tools/xenpaging/xenpaging.c +++ xen-unstable.hg-4.1.22459/tools/xenpaging/xenpaging.c @@ -693,8 +693,6 @@ int main(int argc, char *argv[]) if ( rc == 0 ) rc = rc1; - xc_interface_close(xch); - DPRINTF("xenpaging exit code %d\n", rc); return rc; }