diff options
author | Simo Sorce <idra@samba.org> | 2011-07-27 16:40:21 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-07-28 17:41:08 +0200 |
commit | e84c7a2e26d206f38bcb94d4d1b6c854cdd4094c (patch) | |
tree | 7b03f7c0070c9f16aa8fcd2ae2ddb53e65f5e76d /source3/rpc_server/rpc_handles.c | |
parent | 48a71664f21f50616749b467e6f082b6c20036a1 (diff) | |
download | samba-e84c7a2e26d206f38bcb94d4d1b6c854cdd4094c.tar.gz samba-e84c7a2e26d206f38bcb94d4d1b6c854cdd4094c.tar.xz samba-e84c7a2e26d206f38bcb94d4d1b6c854cdd4094c.zip |
s3-rpc_server: Use talloc for pipe_rpc_fns
Everything uses talloc in the rpc server nowadays, remove this ancient use of
malloc. This also allows us to remove the free fucntion and let talloc handle
it properly.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Jul 28 17:41:08 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server/rpc_handles.c')
-rw-r--r-- | source3/rpc_server/rpc_handles.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source3/rpc_server/rpc_handles.c b/source3/rpc_server/rpc_handles.c index 19e7655221b..87145ca848f 100644 --- a/source3/rpc_server/rpc_handles.c +++ b/source3/rpc_server/rpc_handles.c @@ -107,20 +107,6 @@ bool check_open_pipes(void) Close an rpc pipe. ****************************************************************************/ -static void free_pipe_rpc_context_internal(struct pipe_rpc_fns *list) -{ - struct pipe_rpc_fns *tmp = list; - struct pipe_rpc_fns *tmp2; - - while (tmp) { - tmp2 = tmp->next; - SAFE_FREE(tmp); - tmp = tmp2; - } - - return; -} - int close_internal_rpc_pipe_hnd(struct pipes_struct *p) { if (!p) { @@ -131,8 +117,6 @@ int close_internal_rpc_pipe_hnd(struct pipes_struct *p) /* Free the handles database. */ close_policy_by_pipe(p); - free_pipe_rpc_context_internal(p->contexts); - DLIST_REMOVE(InternalPipes, p); return 0; |