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/srv_pipe.c | |
parent | 48a71664f21f50616749b467e6f082b6c20036a1 (diff) | |
download | samba-e84c7a2e26d206f38bcb94d4d1b6c854cdd4094c.tar.gz samba-e84c7a2e26d206f38bcb94d4d1b6c854cdd4094c.tar.bz2 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/srv_pipe.c')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 233dfdf5b2..058f1b8b14 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -356,10 +356,10 @@ static bool check_bind_req(struct pipes_struct *p, return false; } - context_fns = SMB_MALLOC_P(struct pipe_rpc_fns); + context_fns = talloc(p, struct pipe_rpc_fns); if (context_fns == NULL) { - DEBUG(0,("check_bind_req: malloc() failed!\n")); - return False; + DEBUG(0,("check_bind_req: talloc() failed!\n")); + return false; } context_fns->next = context_fns->prev = NULL; |