From 1bf10ad806512979521336391c627275ffeae040 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 3 Sep 2013 09:23:39 +0000 Subject: smbd: Remove two confusing TALLOC_FREE calls We don't have lck allocated yet at these points. Remove the TALLOC_FREE calls that triggered me looking for the get_share_mode_lock calls. Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- source3/smbd/open.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index f4210d7417..fc6a94c5e8 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2337,7 +2337,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, if (NT_STATUS_EQUAL(fsp_open, NT_STATUS_RETRY)) { schedule_async_open(request_time, req); } - TALLOC_FREE(lck); return fsp_open; } @@ -2351,7 +2350,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, * just fail the open to prevent creating any problems * in the open file db having the wrong dev/ino key. */ - TALLOC_FREE(lck); fd_close(fsp); DEBUG(1,("open_file_ntcreate: file %s - dev/ino mismatch. " "Old (dev=0x%llu, ino =0x%llu). " -- cgit