1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Free case_state earlier

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.
(This used to be commit b326f11dc39a8ce20d957aac976be0cf7108ba9d)
This commit is contained in:
Volker Lendecke 2008-01-20 17:32:19 +01:00
parent 043a7e1774
commit b1017bb551

View 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);