mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-13 11:15:08 +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>
|
Thu Jan 15 01:16:05 GMT 2009 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* src/xen_unified.c: Fix ref-counting for Xen driver event
|
* src/xen_unified.c: Fix ref-counting for Xen driver event
|
||||||
|
@ -1484,6 +1484,10 @@ void
|
|||||||
xenUnifiedDomainInfoListFree(xenUnifiedDomainInfoListPtr list)
|
xenUnifiedDomainInfoListFree(xenUnifiedDomainInfoListPtr list)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (list == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
for (i=0; i<list->count; i++) {
|
for (i=0; i<list->count; i++) {
|
||||||
VIR_FREE(list->doms[i]->name);
|
VIR_FREE(list->doms[i]->name);
|
||||||
VIR_FREE(list->doms[i]);
|
VIR_FREE(list->doms[i]);
|
||||||
|
@ -388,8 +388,10 @@ xenStoreClose(virConnectPtr conn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
xenStoreWatchListFree(priv->xsWatchList);
|
xenStoreWatchListFree(priv->xsWatchList);
|
||||||
|
priv->xsWatchList = NULL;
|
||||||
#ifndef PROXY
|
#ifndef PROXY
|
||||||
xenUnifiedDomainInfoListFree(activeDomainList);
|
xenUnifiedDomainInfoListFree(activeDomainList);
|
||||||
|
activeDomainList = NULL;
|
||||||
#endif
|
#endif
|
||||||
if (priv->xshandle == NULL)
|
if (priv->xshandle == NULL)
|
||||||
return(-1);
|
return(-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user