git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a2b5b6
)
TALLOC_FREE already checks for null.
author
Jeremy Allison
<jra@samba.org>
Wed, 1 Jun 2011 19:12:26 +0000
(12:12 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 1 Jun 2011 19:12:26 +0000
(12:12 -0700)
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 5c9288066850757e2ae17935e66f3d35f0c73514..373c0b3c42711e45f8ca245db08f97988ca4dfc3 100644
(file)
--- 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;
}