From 46afd9b28df46301703ed4166dd8ba0e41767f5b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 8 Jan 2014 09:32:37 +0000 Subject: [PATCH] messaging: Fix a memleak with clustering We have to properly throw away unexpected messages that came in via ctdb Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/msg_channel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/lib/msg_channel.c b/source3/lib/msg_channel.c index 8e23fd44c45..6be5e2ef1c6 100644 --- a/source3/lib/msg_channel.c +++ b/source3/lib/msg_channel.c @@ -310,6 +310,9 @@ static void msg_read_got_ctdb(struct tevent_req *subreq) /* * Got some unexpected msg type, wait for the next one */ + + TALLOC_FREE(state->rec); + subreq = ctdb_msg_read_send(state, state->ev, state->channel->ctdb_channel); if (tevent_req_nomem(subreq, req)) { -- 2.11.4.GIT