mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
remote: Set *neventCallbacks to zero at DEREG_CB
To avoid the chance that the loop is run twice, set the neventCallbacks to zero after VIR_FREE(eventCallbacks) was called.
This commit is contained in:
parent
ef5c8a91aa
commit
b008797662
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user