summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-20 17:32:19 +0100
committerVolker Lendecke <vl@samba.org>2008-01-20 17:44:40 +0100
commitb1017bb551fd28d2f9562acb1ff7f0dde933417a (patch)
tree47272ce4e795782b8b456f1c4fc46b4d7ce5ee7c /source3/smbd
parent043a7e177476d4c281b74d6ce997219f3009744a (diff)
downloadsamba-b1017bb551fd28d2f9562acb1ff7f0dde933417a.tar.gz
samba-b1017bb551fd28d2f9562acb1ff7f0dde933417a.tar.bz2
samba-b1017bb551fd28d2f9562acb1ff7f0dde933417a.zip
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)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index f55728665f..9fca38e3ed 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -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);