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:
Jan Friesse 2011-05-30 16:00:45 +02:00
parent 00434a4f10
commit 5458d4f27a

View File

@ -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();
}