From dd3868a5c76cc6d177c393215c6755d1b42d74a6 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 27 Dec 2016 09:19:16 +0100 Subject: [PATCH] ctdbd_conn: fix a resource leak When reinitializing the ctdb messaging subsystem we must free the ctdb connection fde. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12485 Signed-off-by: Ralph Boehme Reviewed-by: David Disseldorp --- source3/lib/messages_ctdbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/lib/messages_ctdbd.c b/source3/lib/messages_ctdbd.c index 5964894323e..bee268500db 100644 --- a/source3/lib/messages_ctdbd.c +++ b/source3/lib/messages_ctdbd.c @@ -183,6 +183,8 @@ static int messaging_ctdbd_init_internal(struct messaging_context *msg_ctx, int ret, ctdb_fd; if (reinit) { + TALLOC_FREE(ctx->fde); + ret = ctdbd_reinit_connection(ctx, lp_ctdbd_socket(), lp_ctdb_timeout(), -- 2.11.4.GIT