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

[Xen-changelog] [xen-unstable] xenpaging: close xch handle in xenpaging_init error path



# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1292352430 0
# Node ID e66d893d3f7e2e8aba7b6d233291e999c439ee60
# Parent  5e443a99b1ffee5112ad3d06d622c8b44d74fab1
xenpaging: close xch handle in xenpaging_init error path

Just for correctness, close the xch handle in the error path.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/xenpaging/xenpaging.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 5e443a99b1ff -r e66d893d3f7e tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c       Tue Dec 14 17:38:18 2010 +0000
+++ b/tools/xenpaging/xenpaging.c       Tue Dec 14 18:47:10 2010 +0000
@@ -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);

_______________________________________________
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®.