ctdb-tools: Fix CID 1364705 - resource leak
authorAmitay Isaacs <amitay@gmail.com>
Thu, 4 Aug 2016 05:56:23 +0000 (15:56 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 8 Aug 2016 06:17:33 +0000 (08:17 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12121

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tools/ctdb.c

index dd791148606db41c11edf0253e1d0e3c422520ec..cbcdea19ff995d95b76acd12d3dc942bb2e78c0c 100644 (file)
@@ -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);