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

[Xen-changelog] [xen-unstable] Fix two memory leaks in xend.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1189782273 -3600
# Node ID c36292e83f07539ad4973accf499554d4a34647a
# Parent  b032af6ad976a6fc3eb3ad0854864fe3458c92f3
Fix two memory leaks in xend.
Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
---
 tools/python/xen/lowlevel/xc/xc.c |    1 +
 tools/python/xen/lowlevel/xs/xs.c |    1 +
 2 files changed, 2 insertions(+)

diff -r b032af6ad976 -r c36292e83f07 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Fri Sep 14 14:36:54 2007 +0100
+++ b/tools/python/xen/lowlevel/xc/xc.c Fri Sep 14 16:04:33 2007 +0100
@@ -346,6 +346,7 @@ static PyObject *pyxc_domain_getinfo(XcO
             Py_DECREF(list);
             if ( pyhandle  != NULL ) { Py_DECREF(pyhandle);  }
             if ( info_dict != NULL ) { Py_DECREF(info_dict); }
+            free(info);
             return NULL;
         }
         for ( j = 0; j < sizeof(xen_domain_handle_t); j++ )
diff -r b032af6ad976 -r c36292e83f07 tools/python/xen/lowlevel/xs/xs.c
--- a/tools/python/xen/lowlevel/xs/xs.c Fri Sep 14 14:36:54 2007 +0100
+++ b/tools/python/xen/lowlevel/xs/xs.c Fri Sep 14 16:04:33 2007 +0100
@@ -365,6 +365,7 @@ static PyObject *xspy_set_permissions(Xs
         goto exit;
     }
 
+    free(xsperms);
     Py_INCREF(Py_None);
     return Py_None;
 

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