diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-18 08:14:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:48 -0500 |
commit | 046380c56c35177ccf49d0a40e3771242b134277 (patch) | |
tree | 2d930958a16c1fa220f7455d3d8b5579d16ed1d1 /source4/ntvfs | |
parent | f25681b120555bfee99b4a3079479cb3b64e2ca6 (diff) | |
download | samba-046380c56c35177ccf49d0a40e3771242b134277.tar.gz samba-046380c56c35177ccf49d0a40e3771242b134277.tar.bz2 samba-046380c56c35177ccf49d0a40e3771242b134277.zip |
r2403: got rid of a unnecessary mem_ctx in the simple backend
(This used to be commit a4dcf005f30afcb2edd57d450ff9b90341c318a2)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/simple/svfs.h | 1 | ||||
-rw-r--r-- | source4/ntvfs/simple/vfs_simple.c | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/source4/ntvfs/simple/svfs.h b/source4/ntvfs/simple/svfs.h index 373e6dc126..98ce6469a2 100644 --- a/source4/ntvfs/simple/svfs.h +++ b/source4/ntvfs/simple/svfs.h @@ -29,7 +29,6 @@ struct svfs_file { struct search_state { struct search_state *next, *prev; - TALLOC_CTX *mem_ctx; uint16_t handle; uint_t current_index; struct svfs_dir *dir; diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c index 8bce111e9c..11840c8980 100644 --- a/source4/ntvfs/simple/vfs_simple.c +++ b/source4/ntvfs/simple/vfs_simple.c @@ -748,7 +748,6 @@ static NTSTATUS svfs_search_first(struct smbsrv_request *req, union smb_search_f struct svfs_private *private = req->tcon->ntvfs_private; struct search_state *search; union smb_search_data file; - TALLOC_CTX *mem_ctx; uint_t max_count; if (io->generic.level != RAW_SEARCH_BOTH_DIRECTORY_INFO) { @@ -764,7 +763,6 @@ static NTSTATUS svfs_search_first(struct smbsrv_request *req, union smb_search_f dir = svfs_list(private, req, io->t2ffirst.in.pattern); if (!dir) { - talloc_free(mem_ctx); return NT_STATUS_FOOBAR; } |