diff options
author | Amitay Isaacs <amitay@gmail.com> | 2016-08-05 12:46:18 +1000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-08-10 11:24:37 +0200 |
commit | cab7216de287ee9d708f1790976912dc287543e2 (patch) | |
tree | a860a128d3ce4b1d870b070d34b9915b7ac05e53 | |
parent | aa3e881e38b7eb6971e2c0c0074ca57227256444 (diff) | |
download | samba-cab7216de287ee9d708f1790976912dc287543e2.tar.gz |
ctdb-tools: Free connection list after processing it
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>
(cherry picked from commit 2e5e51ebcd3ec8283cdd9c9d13dbe1fc836f8a3d)
-rw-r--r-- | ctdb/tools/ctdb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 0c19413c67f..40a9aab89d3 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -3238,10 +3238,12 @@ static int control_addtickle(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, ctdb_req_control_tcp_add_delayed_update, ctdb_reply_control_tcp_add_delayed_update); if (req == NULL) { + talloc_free(clist); return ENOMEM; } tevent_req_poll(req, ctdb->ev); + talloc_free(clist); ret = process_clist_recv(req); if (ret != 0) { @@ -3299,10 +3301,12 @@ static int control_deltickle(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, ctdb_req_control_tcp_remove, ctdb_reply_control_tcp_remove); if (req == NULL) { + talloc_free(clist); return ENOMEM; } tevent_req_poll(req, ctdb->ev); + talloc_free(clist); ret = process_clist_recv(req); if (ret != 0) { |