diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-11 14:16:04 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-08-13 14:40:16 +0200 |
commit | 173dca482b87c10bc68c8c2f55a9983f15e04c73 (patch) | |
tree | f4a694a5bfc5b79dd39fb8381b3e448822591888 | |
parent | 9287b6788d69f7fc481a4c857ba1e7646544072f (diff) | |
download | samba-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>
-rw-r--r-- | source3/modules/nfs4_acls.c | 2 |
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) { |