smbd: Remove two confusing TALLOC_FREE calls
authorVolker Lendecke <vl@samba.org>
Tue, 3 Sep 2013 09:23:39 +0000 (09:23 +0000)
committerMichael Adam <obnox@samba.org>
Fri, 6 Sep 2013 11:39:16 +0000 (13:39 +0200)
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 <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/open.c

index f4210d7417417db07e9dacb352e3f4a81d7d1fe3..fc6a94c5e884311d4d6878199e1292c6ba610387 100644 (file)
@@ -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). "