summaryrefslogtreecommitdiff
path: root/source4/librpc
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/librpc
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/librpc')
-rw-r--r--source4/librpc/ndr/ndr.c2
-rw-r--r--source4/librpc/rpc/dcerpc_smb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c
index e2e760140a..f4db614c55 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/source4/librpc/ndr/ndr.c
@@ -152,7 +152,7 @@ struct ndr_push *ndr_push_init(void)
/* free a ndr_push structure */
void ndr_push_free(struct ndr_push *ndr)
{
- talloc_destroy(ndr);
+ talloc_free(ndr);
}
diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c
index 3f936407a6..deef2232bf 100644
--- a/source4/librpc/rpc/dcerpc_smb.c
+++ b/source4/librpc/rpc/dcerpc_smb.c
@@ -393,7 +393,7 @@ NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe **p,
}
status = smb_raw_open(tree, mem_ctx, &io);
free(name);
- talloc_destroy(mem_ctx);
+ talloc_free(mem_ctx);
if (!NT_STATUS_IS_OK(status)) {
return status;