提交 c8070bf6 编写于 作者: J John Levon

Fix activeDomainList handling

上级 65316d79
Thu Jan 15 01:19:02 GMT 2009 John Levon <levon@movementarian.org>
* src/xen_unified.c:
* src/xs_internal.c: Fix activeDomainList handling
Thu Jan 15 01:16:05 GMT 2009 John Levon <levon@movementarian.org>
* src/xen_unified.c: Fix ref-counting for Xen driver event
......
......@@ -1484,6 +1484,10 @@ void
xenUnifiedDomainInfoListFree(xenUnifiedDomainInfoListPtr list)
{
int i;
if (list == NULL)
return;
for (i=0; i<list->count; i++) {
VIR_FREE(list->doms[i]->name);
VIR_FREE(list->doms[i]);
......
......@@ -388,8 +388,10 @@ xenStoreClose(virConnectPtr conn)
}
xenStoreWatchListFree(priv->xsWatchList);
priv->xsWatchList = NULL;
#ifndef PROXY
xenUnifiedDomainInfoListFree(activeDomainList);
activeDomainList = NULL;
#endif
if (priv->xshandle == NULL)
return(-1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册