From 8293df91bcec574fb4a2b290cc11dd83353264ae Mon Sep 17 00:00:00 2001
From: Tim Potter <tpot@samba.org>
Date: Wed, 8 Sep 2004 00:00:56 +0000
Subject: r2247: talloc_destroy -> talloc_free (This used to be commit
 6c1a72c5d667245b1eec94f58e68acd22dd720ce)

---
 source4/librpc/ndr/ndr.c        | 2 +-
 source4/librpc/rpc/dcerpc_smb.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'source4/librpc')

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;
-- 
cgit