diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2010-01-26 00:48:23 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-01-28 16:20:39 -0500 |
commit | f858153c367a397235d3e81136741e40e44faf1d (patch) | |
tree | bb346105a3e4c9d1cfc4211fe7c3c578e6668d94 /fs/btrfs/acl.c | |
parent | d1ea6a61454e7d7ff0873d0ad1ae27d5807da0d3 (diff) | |
download | linux-f858153c367a397235d3e81136741e40e44faf1d.tar.gz |
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/acl.c')
-rw-r--r-- | fs/btrfs/acl.c | 1 |
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, ACL_TYPE_ACCESS); } } + posix_acl_release(clone); } failed: posix_acl_release(acl); |