svn commit: samba r7904 - branches/SAMBA_3_0/source/modules
trunk/source/modules
vlendec at samba.org
vlendec at samba.org
Sat Jun 25 13:06:24 GMT 2005
Author: vlendec
Date: 2005-06-25 13:06:23 +0000 (Sat, 25 Jun 2005)
New Revision: 7904
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7904
Log:
Fix a memleak in vfs_afsacl
Modified:
branches/SAMBA_3_0/source/modules/vfs_afsacl.c
trunk/source/modules/vfs_afsacl.c
Changeset:
Modified: branches/SAMBA_3_0/source/modules/vfs_afsacl.c
===================================================================
--- branches/SAMBA_3_0/source/modules/vfs_afsacl.c 2005-06-25 10:13:07 UTC (rev 7903)
+++ branches/SAMBA_3_0/source/modules/vfs_afsacl.c 2005-06-25 13:06:23 UTC (rev 7904)
@@ -619,7 +619,7 @@
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;
Modified: trunk/source/modules/vfs_afsacl.c
===================================================================
--- trunk/source/modules/vfs_afsacl.c 2005-06-25 10:13:07 UTC (rev 7903)
+++ trunk/source/modules/vfs_afsacl.c 2005-06-25 13:06:23 UTC (rev 7904)
@@ -619,7 +619,7 @@
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;
More information about the samba-cvs
mailing list