From 775d0a78c496af8ddbde9eb0f8c2f6d5dc5bcc81 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 2 Nov 2012 08:41:40 +0100 Subject: s3:vfs_gpfs fix a memory leak in gpfsacl_get_posix_acl Signed-off-by: Christian Ambach Reviewed-by: Andrew Bartlett --- source3/modules/vfs_gpfs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3') 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); } -- cgit