nfs4acls: Fix a small memleak
authorVolker Lendecke <vl@samba.org>
Tue, 11 Aug 2015 12:16:04 +0000 (14:16 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 13 Aug 2015 12:40:16 +0000 (14:40 +0200)
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>
source3/modules/nfs4_acls.c

index 7968048bdd19146d07efc96da9107b1d64aa15ae..b3034f978cb2676be4d366b51e3e875560d059bc 100644 (file)
@@ -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) {