summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_afsacl.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-06-25 13:06:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:03 -0500
commit433dcfc09e0c7b4023f1cfdb17a808811764179b (patch)
tree838d3c60cedbc88bc9fb99648fb922a402e7b04d /source3/modules/vfs_afsacl.c
parent40de272fe6f0be1b1451f4ecd58c5c77d39d8d12 (diff)
downloadsamba-433dcfc09e0c7b4023f1cfdb17a808811764179b.tar.gz
samba-433dcfc09e0c7b4023f1cfdb17a808811764179b.tar.bz2
samba-433dcfc09e0c7b4023f1cfdb17a808811764179b.zip
r7904: Fix a memleak in vfs_afsacl
(This used to be commit 8fad08db742ea32a3cda3b3d9421454837e2d2a5)
Diffstat (limited to 'source3/modules/vfs_afsacl.c')
-rw-r--r--source3/modules/vfs_afsacl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c
index 6d6848eb12..44198c8ea0 100644
--- a/source3/modules/vfs_afsacl.c
+++ b/source3/modules/vfs_afsacl.c
@@ -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;