diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-14 16:04:33 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-14 16:04:33 +0100 |
commit | d6dec5a652d7fd1983def3ccd44081898ec81d34 (patch) | |
tree | f51761cc096cbb93a7a4ebe4d330178aadd3e58b | |
parent | 8685a5cb189a3ab10b857c5657b84cd1cd24ced9 (diff) | |
download | xen-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>
-rw-r--r-- | tools/python/xen/lowlevel/xc/xc.c | 1 | ||||
-rw-r--r-- | tools/python/xen/lowlevel/xs/xs.c | 1 |
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; |