git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d27f0b
)
Fix leak in error path.
author
Jeremy Allison
<jra@samba.org>
Tue, 8 Feb 2011 01:33:26 +0000
(17:33 -0800)
committer
Jeremy Allison
<jra@samba.org>
Tue, 8 Feb 2011 01:33:26 +0000
(17:33 -0800)
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 0ef2b3a90d976ea6fc404e58c2cf35377b2f42c4..e6a70bcebc390f7a6ae5af84190df75d49c70dea 100644
(file)
--- 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;
}