s3:vfs_gpfs fix a memory leak in gpfsacl_get_posix_acl
authorChristian Ambach <ambi@samba.org>
Fri, 2 Nov 2012 07:41:40 +0000 (08:41 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Nov 2012 22:28:21 +0000 (23:28 +0100)
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_gpfs.c

index f5ac7eb4fb738347d1dd5c538139d6b1dcb5a997..8f5a19cd602b551661a2aa35adc674860a73c67e 100644 (file)
@@ -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);
        }