mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
TALLOC_FREE already checks for null.
This commit is contained in:
parent
5a2b5b6cfe
commit
61e8c5949a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user