From febde0de5418ec40bb08159505e88997d9eb543c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 1 Jun 2011 12:17:43 -0700 Subject: Move fd_close on error path to be identical to all other error paths. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Jun 1 22:30:03 CEST 2011 on sn-devel-104 --- source3/smbd/open.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 373c0b3c42..d4b0934681 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2257,8 +2257,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, if (!NT_STATUS_IS_OK(status)) { struct deferred_open_record state; - fd_close(fsp); - state.delayed_for_oplocks = False; state.id = id; @@ -2274,6 +2272,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, req, &state); } TALLOC_FREE(lck); + fd_close(fsp); return status; } -- cgit