[PATCH v3 1/2] remote: set neventCallbacks to zero at DEREG_CB

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

 



set neventCallbacks to zero after VIR_FREE(eventCallbacks) was called
---
 daemon/remote.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/daemon/remote.c b/daemon/remote.c
index 07557e9..cbcb6e8 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -1686,6 +1686,7 @@ void remoteRelayConnectionClosedEvent(virConnectPtr conn ATTRIBUTE_UNUSED, int r
                 VIR_WARN("unexpected %s event deregister failure", name); \
         } \
         VIR_FREE(eventCallbacks); \
+        neventCallbacks = 0; \
     } while (0);
 
 /*
-- 
2.8.3


--
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]

  Powered by Linux