mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r2403: got rid of a unnecessary mem_ctx in the simple backend
(This used to be commit a4dcf005f3
)
This commit is contained in:
parent
f25681b120
commit
046380c56c
@ -29,7 +29,6 @@ struct svfs_file {
|
|||||||
|
|
||||||
struct search_state {
|
struct search_state {
|
||||||
struct search_state *next, *prev;
|
struct search_state *next, *prev;
|
||||||
TALLOC_CTX *mem_ctx;
|
|
||||||
uint16_t handle;
|
uint16_t handle;
|
||||||
uint_t current_index;
|
uint_t current_index;
|
||||||
struct svfs_dir *dir;
|
struct svfs_dir *dir;
|
||||||
|
@ -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 svfs_private *private = req->tcon->ntvfs_private;
|
||||||
struct search_state *search;
|
struct search_state *search;
|
||||||
union smb_search_data file;
|
union smb_search_data file;
|
||||||
TALLOC_CTX *mem_ctx;
|
|
||||||
uint_t max_count;
|
uint_t max_count;
|
||||||
|
|
||||||
if (io->generic.level != RAW_SEARCH_BOTH_DIRECTORY_INFO) {
|
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);
|
dir = svfs_list(private, req, io->t2ffirst.in.pattern);
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
talloc_free(mem_ctx);
|
|
||||||
return NT_STATUS_FOOBAR;
|
return NT_STATUS_FOOBAR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user