mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Fix activeDomainList handling
This commit is contained in:
parent
65316d7940
commit
c8070bf632
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user