summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-08-11 14:16:04 +0200
committerVolker Lendecke <vl@samba.org>2015-08-13 14:40:16 +0200
commit173dca482b87c10bc68c8c2f55a9983f15e04c73 (patch)
treef4a694a5bfc5b79dd39fb8381b3e448822591888 /source3/modules
parent9287b6788d69f7fc481a4c857ba1e7646544072f (diff)
downloadsamba-173dca482b87c10bc68c8c2f55a9983f15e04c73.tar.gz
nfs4acls: Fix a small memleak
We don't need the nt_ace_list beyond this function, make_sec_acl makes a copy and make_sec_desc makes another one Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/nfs4_acls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/nfs4_acls.c b/source3/modules/nfs4_acls.c
index 7968048bdd1..b3034f978cb 100644
--- a/source3/modules/nfs4_acls.c
+++ b/source3/modules/nfs4_acls.c
@@ -495,7 +495,7 @@ static NTSTATUS smb_get_nt_acl_nfs4_common(const SMB_STRUCT_STAT *sbuf,
uid_to_sid(&sid_owner, sbuf->st_ex_uid);
gid_to_sid(&sid_group, sbuf->st_ex_gid);
- ok = smbacl4_nfs42win(mem_ctx, params, theacl, &sid_owner, &sid_group,
+ ok = smbacl4_nfs42win(frame, params, theacl, &sid_owner, &sid_group,
S_ISDIR(sbuf->st_ex_mode),
&nt_ace_list, &good_aces);
if (!ok) {