diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2010-01-25 19:48:23 -0500 |
---|---|---|
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) |
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, | |||
269 | ACL_TYPE_ACCESS); | 269 | ACL_TYPE_ACCESS); |
270 | } | 270 | } |
271 | } | 271 | } |
272 | posix_acl_release(clone); | ||
272 | } | 273 | } |
273 | failed: | 274 | failed: |
274 | posix_acl_release(acl); | 275 | posix_acl_release(acl); |