diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-28 11:38:13 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-28 12:21:42 +0100 |
commit | b3eb78c4f7123ccad6af50379c29d0939590d1ff (patch) | |
tree | 33943f4942cad6e19f791b4bbee15a542b2a6e81 | |
parent | d5987048347beefa720f902d97b621e6cb719fdf (diff) | |
download | samba-b3eb78c4f7123ccad6af50379c29d0939590d1ff.tar.gz samba-b3eb78c4f7123ccad6af50379c29d0939590d1ff.tar.bz2 samba-b3eb78c4f7123ccad6af50379c29d0939590d1ff.zip |
s4:smbd/open: add missing TALLOC_FREE(frame) to inherit_new_acl()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/smbd/open.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 201f6981cb..d736f4f795 100644 --- 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; } |