From: Volker Lendecke Date: Tue, 11 Aug 2015 12:16:04 +0000 (+0200) Subject: nfs4acls: Fix a small memleak X-Git-Tag: talloc-2.1.4~405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=173dca482b87c10bc68c8c2f55a9983f15e04c73;p=thirdparty%2Fsamba.git 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 Reviewed-by: Stefan Metzmacher --- 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) {