summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-03 15:17:29 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-03 17:23:28 +0200
commitf66d88d10afff65d743663b2e27a94271225b229 (patch)
tree4d6b5fb213efaa914e730afc00da5ead8bc4702b /source3/smbd
parent8751c3f2ef5700c4b317bfecf0e68facf09c6c1e (diff)
downloadsamba-f66d88d10afff65d743663b2e27a94271225b229.tar.gz
samba-f66d88d10afff65d743663b2e27a94271225b229.tar.bz2
samba-f66d88d10afff65d743663b2e27a94271225b229.zip
s3:smbd/close: remove unused goto out from close_directory()
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 8f8682bdd8..adcd67a5f5 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -1140,7 +1140,7 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
if (!NT_STATUS_IS_OK(status)) {
DEBUG(5, ("delete_all_streams failed: %s\n",
nt_errstr(status)));
- goto out;
+ return status;
}
}
@@ -1181,8 +1181,6 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
close_filestruct(fsp);
file_free(req, fsp);
- out:
- TALLOC_FREE(lck);
if (NT_STATUS_IS_OK(status) && !NT_STATUS_IS_OK(status1)) {
status = status1;
}