mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix activeDomainList handling
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user