[PATCH 4/6] s3:vfs_gpfs fix a memory leak in gpfsacl_get_posix_acl

Christian Ambach ambi at samba.org
Fri Nov 16 15:50:34 MST 2012


Signed-off-by: Christian Ambach <ambi at samba.org>
---
 source3/modules/vfs_gpfs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index f5ac7eb..8f5a19c 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);
 	}
-- 
1.7.11.7



More information about the samba-technical mailing list