git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
22299f9
)
ctdb: Fixing memory leak in ctdb_tcp_tnode_cb
author
Swen Schillig
<swen@vnet.ibm.com>
Tue, 13 Mar 2018 08:42:24 +0000
(09:42 +0100)
committer
Jeremy Allison
<jra@samba.org>
Fri, 30 Mar 2018 22:07:18 +0000
(
00:07
+0200)
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>
ctdb/tcp/tcp_connect.c
patch
|
blob
|
history
diff --git
a/ctdb/tcp/tcp_connect.c
b/ctdb/tcp/tcp_connect.c
index 17aafc415f7c80f6f8a66bcb840f7f3d290ded90..13452a5e83b62621b995db7267de8e06320a2da9 100644
(file)
--- 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);
}
/*