1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r7904: Fix a memleak in vfs_afsacl

(This used to be commit 8fad08db74)
This commit is contained in:
Volker Lendecke 2005-06-25 13:06:23 +00:00 committed by Gerald (Jerry) Carter
parent 40de272fe6
commit 433dcfc09e

View File

@ -619,7 +619,7 @@ static size_t afs_to_nt_acl(struct afs_acl *afs_acl,
uid_to_sid(&owner_sid, sbuf.st_uid);
gid_to_sid(&group_sid, sbuf.st_gid);
nt_ace_list = SMB_MALLOC_ARRAY(SEC_ACE, afs_acl->num_aces);
nt_ace_list = TALLOC_ARRAY(mem_ctx, SEC_ACE, afs_acl->num_aces);
if (nt_ace_list == NULL)
return 0;