diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2018-03-13 09:42:24 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-03-31 00:07:18 +0200 |
commit | 611c9a0ba9472aae17a3099da20ea2d836cef84a (patch) | |
tree | bd1cb15afcccfd73a06d771733c9885b3ba462b8 /ctdb/tcp | |
parent | 22299f9898ddb84db47b5372ca3cd49c3ec4a1f5 (diff) | |
download | samba-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.c | 1 |
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); } /* |