git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d598704
)
s4:smbd/open: add missing TALLOC_FREE(frame) to inherit_new_acl()
author
Stefan Metzmacher
<metze@samba.org>
Wed, 28 Nov 2012 10:38:13 +0000
(11:38 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 28 Nov 2012 11:21:42 +0000
(12:21 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 201f6981cbd68df75de39d7b6395cea4649a4ba3..d736f4f795bb05d935afff6060f326e9e7c5761d 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-3460,6
+3460,7
@@
static NTSTATUS inherit_new_acl(files_struct *fsp)
size_t size = 0;
if (!parent_dirname(frame, fsp->fsp_name->base_name, &parent_name, NULL)) {
+ TALLOC_FREE(frame);
return NT_STATUS_NO_MEMORY;
}
@@
-3469,6
+3470,7
@@
static NTSTATUS inherit_new_acl(files_struct *fsp)
frame,
&parent_desc);
if (!NT_STATUS_IS_OK(status)) {
+ TALLOC_FREE(frame);
return status;
}