aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorYang Hongyang <yanghy@cn.fujitsu.com>2010-01-26 00:48:23 +0000
committerChris Mason <chris.mason@oracle.com>2010-01-28 16:20:39 -0500
commitf858153c367a397235d3e81136741e40e44faf1d (patch)
treebb346105a3e4c9d1cfc4211fe7c3c578e6668d94 /fs/btrfs
parentd1ea6a61454e7d7ff0873d0ad1ae27d5807da0d3 (diff)
Btrfs: fix a memory leak in btrfs_init_acl
In btrfs_init_acl() cloned acl is not released Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/acl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c
index fa44e92e9b8..da3133c6983 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -269,6 +269,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
ACL_TYPE_ACCESS);
}
}
+ posix_acl_release(clone);
}
failed:
posix_acl_release(acl);