TALLOC_FREE already checks for null.
authorJeremy Allison <jra@samba.org>
Wed, 1 Jun 2011 19:12:26 +0000 (12:12 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 1 Jun 2011 19:12:26 +0000 (12:12 -0700)
source3/smbd/open.c

index 5c9288066850757e2ae17935e66f3d35f0c73514..373c0b3c42711e45f8ca245db08f97988ca4dfc3 100644 (file)
@@ -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;
        }