summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_gpfs.c
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2012-11-02 08:39:45 +0100
committerAndrew Bartlett <abartlet@samba.org>2012-11-16 23:28:21 +0100
commit3dab1ef8a57670a36a81e706895bbe225892f3ff (patch)
tree7b0dac43f2f6a4c9d363c4b7cf28551eb1516b65 /source3/modules/vfs_gpfs.c
parent3925a7114caaac56e79849ebf3aa13784918282b (diff)
downloadsamba-3dab1ef8a57670a36a81e706895bbe225892f3ff.tar.gz
samba-3dab1ef8a57670a36a81e706895bbe225892f3ff.tar.bz2
samba-3dab1ef8a57670a36a81e706895bbe225892f3ff.zip
s3:vfs_gpfs fix memory leak in gpfs_get_nfs4_acl
Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/modules/vfs_gpfs.c')
-rw-r--r--source3/modules/vfs_gpfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index edf0273711..e425d2f1c3 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;
}