aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-09-14 16:04:33 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-09-14 16:04:33 +0100
commitd6dec5a652d7fd1983def3ccd44081898ec81d34 (patch)
treef51761cc096cbb93a7a4ebe4d330178aadd3e58b /tools
parent8685a5cb189a3ab10b857c5657b84cd1cd24ced9 (diff)
downloadxen-d6dec5a652d7fd1983def3ccd44081898ec81d34.tar.gz
xen-d6dec5a652d7fd1983def3ccd44081898ec81d34.tar.bz2
xen-d6dec5a652d7fd1983def3ccd44081898ec81d34.zip
Fix two memory leaks in xend.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/lowlevel/xc/xc.c1
-rw-r--r--tools/python/xen/lowlevel/xs/xs.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c
index 93402b1e5b..d91b795636 100644
--- a/tools/python/xen/lowlevel/xc/xc.c
+++ b/tools/python/xen/lowlevel/xc/xc.c
@@ -346,6 +346,7 @@ static PyObject *pyxc_domain_getinfo(XcObject *self,
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 --git a/tools/python/xen/lowlevel/xs/xs.c b/tools/python/xen/lowlevel/xs/xs.c
index 45cbf773d9..b2c4b090e4 100644
--- a/tools/python/xen/lowlevel/xs/xs.c
+++ b/tools/python/xen/lowlevel/xs/xs.c
@@ -365,6 +365,7 @@ static PyObject *xspy_set_permissions(XsHandle *self, PyObject *args)
goto exit;
}
+ free(xsperms);
Py_INCREF(Py_None);
return Py_None;