summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-02-07 17:33:26 -0800
committerJeremy Allison <jra@samba.org>2011-02-07 17:33:26 -0800
commit0a7f1af82ca94a9ea3f2fbe6b4bf64ff17c76cce (patch)
tree18296e4d5aeeb4d643b21343c6f52410df019428 /source3/smbd
parent1d27f0b26431d32d969d1ad10d47c396d1c7517f (diff)
downloadsamba-0a7f1af82ca94a9ea3f2fbe6b4bf64ff17c76cce.tar.gz
samba-0a7f1af82ca94a9ea3f2fbe6b4bf64ff17c76cce.tar.bz2
samba-0a7f1af82ca94a9ea3f2fbe6b4bf64ff17c76cce.zip
Fix leak in error path.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 0ef2b3a90d..e6a70bcebc 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2720,6 +2720,7 @@ static NTSTATUS open_directory(connection_struct *conn,
fsp->posix_open = (file_attributes & FILE_FLAG_POSIX_SEMANTICS) ? True : False;
status = fsp_set_smb_fname(fsp, smb_dname);
if (!NT_STATUS_IS_OK(status)) {
+ file_free(req, fsp);
return status;
}