summaryrefslogtreecommitdiff
path: root/ctdb/tcp
diff options
context:
space:
mode:
authorSwen Schillig <swen@vnet.ibm.com>2018-03-13 09:42:24 +0100
committerJeremy Allison <jra@samba.org>2018-03-31 00:07:18 +0200
commit611c9a0ba9472aae17a3099da20ea2d836cef84a (patch)
treebd1cb15afcccfd73a06d771733c9885b3ba462b8 /ctdb/tcp
parent22299f9898ddb84db47b5372ca3cd49c3ec4a1f5 (diff)
downloadsamba-611c9a0ba9472aae17a3099da20ea2d836cef84a.tar.gz
ctdb: Fixing memory leak in ctdb_tcp_tnode_cb
It is expected by the caller(queue_process) that the callback is free'ing the memory referenced by the data pointer. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'ctdb/tcp')
-rw-r--r--ctdb/tcp/tcp_connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c
index 17aafc415f7..13452a5e83b 100644
--- a/ctdb/tcp/tcp_connect.c
+++ b/ctdb/tcp/tcp_connect.c
@@ -75,6 +75,7 @@ void ctdb_tcp_tnode_cb(uint8_t *data, size_t cnt, void *private_data)
tnode->connect_te = tevent_add_timer(node->ctdb->ev, tnode,
timeval_current_ofs(3, 0),
ctdb_tcp_node_connect, node);
+ TALLOC_FREE(data);
}
/*