summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/open.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 633e70ac31..821feffd65 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1905,7 +1905,6 @@ files_struct *open_directory(connection_struct *conn,
DEBUG(5,("open_directory: invalid create_disposition "
"0x%x for directory %s\n",
(unsigned int)create_disposition, fname));
- file_free(fsp);
set_saved_ntstatus(NT_STATUS_INVALID_PARAMETER);
return NULL;
}