summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-03 09:23:39 +0000
committerMichael Adam <obnox@samba.org>2013-09-06 13:39:16 +0200
commit1bf10ad806512979521336391c627275ffeae040 (patch)
tree0e22f4a5644b4ca2307fac7f34f0d7c0ef9e6215 /source3/smbd/open.c
parentcdc99b362f86cfab839076fba128699ae38d4039 (diff)
downloadsamba-1bf10ad806512979521336391c627275ffeae040.tar.gz
samba-1bf10ad806512979521336391c627275ffeae040.tar.bz2
samba-1bf10ad806512979521336391c627275ffeae040.zip
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 <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c2
1 files changed, 0 insertions, 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). "