From 66bf88a6e501e410b7172af1ecd956df12edd999 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 4 Aug 2016 15:56:23 +1000 Subject: [PATCH] ctdb-tools: Fix CID 1364705 - resource leak BUG: https://bugzilla.samba.org/show_bug.cgi?id=12121 Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke (cherry picked from commit 5f5d9549fcae4b2fa4b99bef3892a24bdbb0eaa9) --- ctdb/tools/ctdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 28b3dc9d303..6db57f4727f 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -3023,6 +3023,8 @@ static int control_tickle(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, } } + TALLOC_FREE(clist); + if (num_failed > 0) { fprintf(stderr, "Failed to send %d tickles\n", num_failed);