summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_gpfs.c
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2012-11-02 08:41:40 +0100
committerAndrew Bartlett <abartlet@samba.org>2012-11-16 23:28:21 +0100
commit775d0a78c496af8ddbde9eb0f8c2f6d5dc5bcc81 (patch)
treedbb2725d2ff600bdf7c710bc87c8ff3a675959da /source3/modules/vfs_gpfs.c
parent1a71f07cee0bfe50ea6821a195a950d2206aab55 (diff)
downloadsamba-775d0a78c496af8ddbde9eb0f8c2f6d5dc5bcc81.tar.gz
samba-775d0a78c496af8ddbde9eb0f8c2f6d5dc5bcc81.tar.bz2
samba-775d0a78c496af8ddbde9eb0f8c2f6d5dc5bcc81.zip
s3:vfs_gpfs fix a memory leak in gpfsacl_get_posix_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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index f5ac7eb4fb..8f5a19cd60 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -663,6 +663,9 @@ static SMB_ACL_T gpfsacl_get_posix_acl(const char *path, gpfs_aclType_t type,
done:
+ if (pacl != NULL) {
+ talloc_free(pacl);
+ }
if (errno != 0) {
TALLOC_FREE(result);
}