mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-13 02:49:19 +00:00
votequorum: free newly allocated node if nodeid==0
Signed-off-by: Jan Friesse <jfriesse@redhat.com> Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
00434a4f10
commit
5458d4f27a
@ -1050,6 +1050,11 @@ static void message_handler_req_exec_votequorum_nodeinfo (
|
||||
if (new_node || req_exec_quorum_nodeinfo->first_trans ||
|
||||
old_votes != node->votes || old_expected != node->expected_votes || old_state != node->state)
|
||||
recalculate_quorum(0, 0);
|
||||
|
||||
if (!nodeid) {
|
||||
free(node);
|
||||
}
|
||||
|
||||
LEAVE();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user