Fix activeDomainList handling

This commit is contained in:
John Levon 2009-01-15 01:21:36 +00:00
parent 65316d7940
commit c8070bf632
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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]);

View File

@ -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);