s3:smbd/close: remove unused goto out from close_directory()
authorStefan Metzmacher <metze@samba.org>
Sun, 3 Jun 2012 13:17:29 +0000 (15:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 3 Jun 2012 15:23:28 +0000 (17:23 +0200)
metze

source3/smbd/close.c

index 8f8682bdd8300e068f4d61652561b84d038d0bd8..adcd67a5f501d125b4f7380782ecae8289aa411d 100644 (file)
@@ -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;
        }