mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb-tcp: Use TALLOC_FREE()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14084 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
c68b6f96f2
commit
d80d9edb4d
@ -46,10 +46,8 @@ void ctdb_tcp_stop_connection(struct ctdb_node *node)
|
||||
node->private_data, struct ctdb_tcp_node);
|
||||
|
||||
ctdb_queue_set_fd(tnode->out_queue, -1);
|
||||
talloc_free(tnode->connect_te);
|
||||
talloc_free(tnode->connect_fde);
|
||||
tnode->connect_fde = NULL;
|
||||
tnode->connect_te = NULL;
|
||||
TALLOC_FREE(tnode->connect_te);
|
||||
TALLOC_FREE(tnode->connect_fde);
|
||||
if (tnode->out_fd != -1) {
|
||||
close(tnode->out_fd);
|
||||
tnode->out_fd = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user