Free case_state earlier
authorVolker Lendecke <vl@samba.org>
Sun, 20 Jan 2008 16:32:19 +0000 (17:32 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 20 Jan 2008 16:44:40 +0000 (17:44 +0100)
Found by a "set but never used" warning. Thanks to talloc_tos() this was not
really a bug, but this way the code becomes much clearer.

source/smbd/open.c

index f55728665fb1e25351dc69f221b2be3902c5702a..9fca38e3ed14ac0b8fc093d5b4a324a477030e9d 100644 (file)
@@ -3080,6 +3080,8 @@ NTSTATUS create_file(connection_struct *conn,
                fname = converted_fname;
        }
 
+       TALLOC_FREE(case_state);
+
        /* All file access must go through check_name() */
 
        status = check_name(conn, fname);