summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-06-01 12:12:26 -0700
committerJeremy Allison <jra@samba.org>2011-06-01 12:12:26 -0700
commit61e8c5949a50665158bdfd1e7624a5ad27d34a13 (patch)
treefd4f96e435de462ad53e133891aa37616900ec14 /source3/smbd
parent5a2b5b6cfed74e0e9c2965525995f64cdad7b7c9 (diff)
downloadsamba-61e8c5949a50665158bdfd1e7624a5ad27d34a13.tar.gz
samba-61e8c5949a50665158bdfd1e7624a5ad27d34a13.tar.bz2
samba-61e8c5949a50665158bdfd1e7624a5ad27d34a13.zip
TALLOC_FREE already checks for null.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 5c92880668..373c0b3c42 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2172,9 +2172,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
open_access_mask);
if (!NT_STATUS_IS_OK(fsp_open)) {
- if (lck != NULL) {
- TALLOC_FREE(lck);
- }
+ TALLOC_FREE(lck);
return fsp_open;
}