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

[Xen-devel] [PATCH] Fix minor memory leak in xend



Fix minor memory leak in xend.

Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>

diff -r a00cc97b392a tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Wed Sep 12 09:43:33 2007 +0100
+++ b/tools/python/xen/lowlevel/xc/xc.c Thu Sep 13 14:02:36 2007 +0900
@@ -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++ )
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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