mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
1f6835c732
commit
2e5e51ebcd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user