diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-25 11:24:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:13 -0500 |
commit | d79c7d41da373dea7f95506c178b18f0dd896043 (patch) | |
tree | cc8063224f109163481973e5f076674c976d7b9f /source4/rpc_server/dcerpc_server.h | |
parent | 998e8022b6d608840cf7c8058e24277b959da64d (diff) | |
download | samba-d79c7d41da373dea7f95506c178b18f0dd896043.tar.gz samba-d79c7d41da373dea7f95506c178b18f0dd896043.tar.bz2 samba-d79c7d41da373dea7f95506c178b18f0dd896043.zip |
r2627: use the new talloc capabilities in a bunch more places in the rpc
server code. This fixes a number of memory leaks I found when testing
with valgrind and smbtorture, as the cascading effect of a
talloc_free() ensures that anything derived from the top level object
is destroyed on disconnect.
(This used to be commit 76d0b8206ce64d6ff4a192979c43dddbec726d6e)
Diffstat (limited to 'source4/rpc_server/dcerpc_server.h')
-rw-r--r-- | source4/rpc_server/dcerpc_server.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source4/rpc_server/dcerpc_server.h b/source4/rpc_server/dcerpc_server.h index fd009f6219..09e8697fa2 100644 --- a/source4/rpc_server/dcerpc_server.h +++ b/source4/rpc_server/dcerpc_server.h @@ -69,7 +69,6 @@ struct dcesrv_interface { struct dcesrv_call_state { struct dcesrv_call_state *next, *prev; struct dcesrv_connection *conn; - TALLOC_CTX *mem_ctx; struct dcerpc_packet pkt; DATA_BLOB input; @@ -89,7 +88,6 @@ struct dcesrv_call_state { struct dcesrv_handle { struct dcesrv_handle *next, *prev; struct policy_handle wire_handle; - TALLOC_CTX *mem_ctx; void *data; void (*destroy)(struct dcesrv_connection *, struct dcesrv_handle *); }; @@ -108,8 +106,6 @@ struct dcesrv_connection { /* the top level context for this server */ struct dcesrv_context *dce_ctx; - TALLOC_CTX *mem_ctx; - /* the endpoint that was opened */ const struct dcesrv_endpoint *endpoint; @@ -166,8 +162,6 @@ struct dcesrv_endpoint_server { /* server-wide context information for the dcerpc server */ struct dcesrv_context { - TALLOC_CTX *mem_ctx; - /* the list of endpoints that have registered * by the configured endpoint servers */ |