mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Fix two memory leaks in xend.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
This commit is contained in:
1 parent
8685a5cb18
commit
d6dec5a652
2 files changed
+2
No files matched your search
@@ -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++ )
|
||||
|
||||
@@ -365,6 +365,7 @@ static PyObject *xspy_set_permissions(XsHandle *self, PyObject *args)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
free(xsperms);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
|
||||
|
||||