diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-26 03:50:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:16 -0500 |
commit | 9a62dce0ac2dd751c9cc3b9906eec8c4fe7c51b7 (patch) | |
tree | a6fd92fd12aae07a2bab782feecd66b4369b61f7 /source4/smbd/process_single.c | |
parent | 764eddb69647681f784f343a122251ca1ecf62df (diff) | |
download | samba-9a62dce0ac2dd751c9cc3b9906eec8c4fe7c51b7.tar.gz samba-9a62dce0ac2dd751c9cc3b9906eec8c4fe7c51b7.tar.bz2 samba-9a62dce0ac2dd751c9cc3b9906eec8c4fe7c51b7.zip |
r2648: - use a destructor on struct server_connection to simplify the
connection termination cleanup, and to ensure that the event
contexts are properly removed for every process model
- gave auth_context the new talloc treatment, which removes another
source of memory leaks.
(This used to be commit 230e1cd777b0fba82dffcbd656cfa23c155d0560)
Diffstat (limited to 'source4/smbd/process_single.c')
-rw-r--r-- | source4/smbd/process_single.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source4/smbd/process_single.c b/source4/smbd/process_single.c index 62d780277c..12a265b62f 100644 --- a/source4/smbd/process_single.c +++ b/source4/smbd/process_single.c @@ -71,15 +71,7 @@ static void single_terminate_connection(struct server_connection *conn, const ch DEBUG(2,("single_terminate_connection: reason[%s]\n",reason)); if (conn) { - if (conn->service) { - conn->service->ops->close_connection(conn,reason); - } - - if (conn->server_socket) { - DLIST_REMOVE(conn->server_socket->connection_list,conn); - } - - server_destroy_connection(conn); + talloc_free(conn); } } |