From f66d88d10afff65d743663b2e27a94271225b229 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 3 Jun 2012 15:17:29 +0200 Subject: s3:smbd/close: remove unused goto out from close_directory() metze --- source3/smbd/close.c | 4 +--- 1 file changed, 1 insertion(+), 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; } -- cgit