Fix two memory leaks in xend.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-09-14 16:04:33 +01:00
1 parent 8685a5cb18
commit d6dec5a652
2 files changed
+2

No files matched your search

+1
View File
@@ -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++ )
+1
View File
@@ -365,6 +365,7 @@ static PyObject *xspy_set_permissions(XsHandle *self, PyObject *args)
goto exit;
}
free(xsperms);
Py_INCREF(Py_None);
return Py_None;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.