summaryrefslogtreecommitdiff
path: root/source4/ntvfs
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/ntvfs
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/ntvfs')
-rw-r--r--source4/ntvfs/simple/vfs_simple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c
index ae64c96c75..007095f44a 100644
--- a/source4/ntvfs/simple/vfs_simple.c
+++ b/source4/ntvfs/simple/vfs_simple.c
@@ -803,7 +803,7 @@ static NTSTATUS svfs_search_first(struct smbsrv_request *req, union smb_search_f
/* work out if we are going to keep the search state */
if ((io->t2ffirst.in.flags & FLAG_TRANS2_FIND_CLOSE) ||
((io->t2ffirst.in.flags & FLAG_TRANS2_FIND_CLOSE_IF_END) && (i == dir->count))) {
- talloc_destroy(search->mem_ctx);
+ talloc_free(search->mem_ctx);
} else {
private->next_search_handle++;
DLIST_ADD(private->search, search);
@@ -893,7 +893,7 @@ found:
if ((io->t2fnext.in.flags & FLAG_TRANS2_FIND_CLOSE) ||
((io->t2fnext.in.flags & FLAG_TRANS2_FIND_CLOSE_IF_END) && (i == dir->count))) {
DLIST_REMOVE(private->search, search);
- talloc_destroy(search->mem_ctx);
+ talloc_free(search->mem_ctx);
}
return NT_STATUS_OK;
@@ -915,7 +915,7 @@ static NTSTATUS svfs_search_close(struct smbsrv_request *req, union smb_search_c
}
DLIST_REMOVE(private->search, search);
- talloc_destroy(search->mem_ctx);
+ talloc_free(search->mem_ctx);
return NT_STATUS_OK;
}