git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f2b5dc
)
Free case_state earlier
author
Volker Lendecke
<vl@samba.org>
Sun, 20 Jan 2008 16:32:19 +0000
(17:32 +0100)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source/smbd/open.c
b/source/smbd/open.c
index f55728665fb1e25351dc69f221b2be3902c5702a..9fca38e3ed14ac0b8fc093d5b4a324a477030e9d 100644
(file)
--- a/
source/smbd/open.c
+++ b/
source/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);