[libvirt] [PATCH] Fix activeDomainList handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# HG changeset patch
# User john.levon@xxxxxxx
# Date 1231958879 28800
# Node ID 1fca4b0dd4c6ab3c0030b4986de6fe5cb7c94631
# Parent  097f5b4497d7ecc5cce14d10559244313d26ce46
Fix activeDomainList handling

It must be NULLed out after free()ing.

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/src/xs_internal.c b/src/xs_internal.c
--- a/src/xs_internal.c
+++ b/src/xs_internal.c
@@ -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);

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]