aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorYang Hongyang <yanghy@cn.fujitsu.com>2010-01-25 19:48:23 -0500
committerChris Mason <chris.mason@oracle.com>2010-01-28 16:20:39 -0500
commitf858153c367a397235d3e81136741e40e44faf1d (patch)
treebb346105a3e4c9d1cfc4211fe7c3c578e6668d94 /fs
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')
-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 fa44e92e9b8f..da3133c69830 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -269,6 +269,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
269 ACL_TYPE_ACCESS); 269 ACL_TYPE_ACCESS);
270 } 270 }
271 } 271 }
272 posix_acl_release(clone);
272 } 273 }
273failed: 274failed:
274 posix_acl_release(acl); 275 posix_acl_release(acl);