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

[Xen-changelog] [xen-unstable] xenpaging: remove duplicate xc_interface_close call



# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1292352616 0
# Node ID 13f0549597cb7a9ab56a587e09e756245678ce0a
# Parent  2a7982c63ae7200a5f477ea078fe4fb182c2ac1d
xenpaging: remove duplicate xc_interface_close call

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 <olaf@xxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/xenpaging/xenpaging.c |    2 --
 1 files changed, 2 deletions(-)

diff -r 2a7982c63ae7 -r 13f0549597cb tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c       Tue Dec 14 18:49:40 2010 +0000
+++ b/tools/xenpaging/xenpaging.c       Tue Dec 14 18:50:16 2010 +0000
@@ -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;
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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