diff options
author | Jeremy Allison <jra@samba.org> | 2011-06-01 12:12:26 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-06-01 12:12:26 -0700 |
commit | 61e8c5949a50665158bdfd1e7624a5ad27d34a13 (patch) | |
tree | fd4f96e435de462ad53e133891aa37616900ec14 /source3 | |
parent | 5a2b5b6cfed74e0e9c2965525995f64cdad7b7c9 (diff) | |
download | samba-61e8c5949a50665158bdfd1e7624a5ad27d34a13.tar.gz samba-61e8c5949a50665158bdfd1e7624a5ad27d34a13.tar.bz2 samba-61e8c5949a50665158bdfd1e7624a5ad27d34a13.zip |
TALLOC_FREE already checks for null.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/open.c | 4 |
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; } |