[PATCH 2/6] s3:vfs_gpfs fix memory leak in gpfs_get_nfs4_acl
Christian Ambach
ambi at samba.org
Fri Nov 16 15:50:32 MST 2012
Signed-off-by: Christian Ambach <ambi at samba.org>
---
source3/modules/vfs_gpfs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index edf0273..e425d2f 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -288,6 +288,7 @@ static int gpfs_get_nfs4_acl(const char *fname, SMB4ACL_T **ppacl)
if (gacl->acl_type != GPFS_ACL_TYPE_NFS4) {
DEBUG(10, ("Got non-nfsv4 acl\n"));
/* Retry with POSIX ACLs check */
+ talloc_free(gacl);
return 1;
}
--
1.7.11.7
More information about the samba-technical
mailing list