summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-08 00:00:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:34 -0500
commit8293df91bcec574fb4a2b290cc11dd83353264ae (patch)
tree61f9c0a70bec06a0e39ac80e5edab51195da36b6 /source4/rpc_server
parent915f2e539d4b2f5f4eb87a1f64f50f3d9a17743a (diff)
downloadsamba-8293df91bcec574fb4a2b290cc11dd83353264ae.tar.gz
samba-8293df91bcec574fb4a2b290cc11dd83353264ae.tar.bz2
samba-8293df91bcec574fb4a2b290cc11dd83353264ae.zip
r2247: talloc_destroy -> talloc_free
(This used to be commit 6c1a72c5d667245b1eec94f58e68acd22dd720ce)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcerpc_server.c16
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c12
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c2
3 files changed, 15 insertions, 15 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index 5cadeb254f..891462214c 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -255,7 +255,7 @@ NTSTATUS dcesrv_endpoint_connect(struct dcesrv_context *dce_ctx,
*p = talloc_p(mem_ctx, struct dcesrv_connection);
if (! *p) {
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
return NT_STATUS_NO_MEMORY;
}
@@ -332,7 +332,7 @@ void dcesrv_endpoint_disconnect(struct dcesrv_connection *p)
free_session_info(&p->auth_state.session_info);
}
- talloc_destroy(p->mem_ctx);
+ talloc_free(p->mem_ctx);
}
static void dcesrv_init_hdr(struct dcerpc_packet *pkt)
@@ -544,7 +544,7 @@ static NTSTATUS dcesrv_auth3(struct dcesrv_call_state *call)
return dcesrv_fault(call, DCERPC_FAULT_OTHER);
}
- talloc_destroy(call->mem_ctx);
+ talloc_free(call->mem_ctx);
/* we don't send a reply to a auth3 request, except by a
fault */
@@ -735,7 +735,7 @@ NTSTATUS dcesrv_input_process(struct dcesrv_connection *dce_conn)
call = talloc_p(mem_ctx, struct dcesrv_call_state);
if (!call) {
talloc_free(dce_conn->partial_input.data);
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
return NT_STATUS_NO_MEMORY;
}
call->mem_ctx = mem_ctx;
@@ -748,7 +748,7 @@ NTSTATUS dcesrv_input_process(struct dcesrv_connection *dce_conn)
ndr = ndr_pull_init_blob(&blob, mem_ctx);
if (!ndr) {
talloc_free(dce_conn->partial_input.data);
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
return NT_STATUS_NO_MEMORY;
}
@@ -759,7 +759,7 @@ NTSTATUS dcesrv_input_process(struct dcesrv_connection *dce_conn)
status = ndr_pull_dcerpc_packet(ndr, NDR_SCALARS|NDR_BUFFERS, &call->pkt);
if (!NT_STATUS_IS_OK(status)) {
talloc_free(dce_conn->partial_input.data);
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
return status;
}
@@ -841,7 +841,7 @@ NTSTATUS dcesrv_input_process(struct dcesrv_connection *dce_conn)
it to the list of pending calls. We add it to the end to keep the call
list in the order we will answer */
if (!NT_STATUS_IS_OK(status)) {
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
}
return status;
@@ -924,7 +924,7 @@ NTSTATUS dcesrv_output(struct dcesrv_connection *dce_conn,
if (call->replies == NULL) {
/* we're done with the whole call */
DLIST_REMOVE(dce_conn->call_list, call);
- talloc_destroy(call->mem_ctx);
+ talloc_free(call->mem_ctx);
}
return status;
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index de41838da5..b6182d31c6 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -52,7 +52,7 @@ static NTSTATUS netlogon_schannel_setup(struct dcesrv_call_state *dce_call)
}
state = talloc_p(mem_ctx, struct server_pipe_state);
if (state == NULL) {
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
return NT_STATUS_NO_MEMORY;
}
ZERO_STRUCTP(state);
@@ -60,7 +60,7 @@ static NTSTATUS netlogon_schannel_setup(struct dcesrv_call_state *dce_call)
state->authenticated = True;
if (dce_call->conn->auth_state.session_info == NULL) {
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
smb_panic("No session info provided by schannel level setup!");
return NT_STATUS_NO_USER_SESSION_KEY;
}
@@ -71,7 +71,7 @@ static NTSTATUS netlogon_schannel_setup(struct dcesrv_call_state *dce_call)
if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("getting schannel credentials failed with %s\n", nt_errstr(status)));
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
return status;
}
@@ -110,7 +110,7 @@ static void netlogon_unbind(struct dcesrv_connection *conn, const struct dcesrv_
struct server_pipe_state *pipe_state = conn->private;
if (pipe_state) {
- talloc_destroy(pipe_state->mem_ctx);
+ talloc_free(pipe_state->mem_ctx);
}
conn->private = NULL;
@@ -130,7 +130,7 @@ static NTSTATUS netr_ServerReqChallenge(struct dcesrv_call_state *dce_call, TALL
/* destroyed on pipe shutdown */
if (pipe_state) {
- talloc_destroy(pipe_state->mem_ctx);
+ talloc_free(pipe_state->mem_ctx);
dce_call->conn->private = NULL;
}
@@ -143,7 +143,7 @@ static NTSTATUS netr_ServerReqChallenge(struct dcesrv_call_state *dce_call, TALL
pipe_state = talloc_p(pipe_mem_ctx, struct server_pipe_state);
if (!pipe_state) {
- talloc_destroy(pipe_mem_ctx);
+ talloc_free(pipe_mem_ctx);
return NT_STATUS_NO_MEMORY;
}
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 60147a94fb..285e92aa01 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -55,7 +55,7 @@ static NTSTATUS samr_Connect(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem
/* make sure the sam database is accessible */
c_state->sam_ctx = samdb_connect(mem_ctx);
if (c_state->sam_ctx == NULL) {
- talloc_destroy(c_state);
+ talloc_free(c_state);
return NT_STATUS_INVALID_SYSTEM_SERVICE;
}