summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorYang Hongyang <yanghy@cn.fujitsu.com>2010-01-26 01:48:23 +0100
committerChris Mason <chris.mason@oracle.com>2010-01-28 22:20:39 +0100
commitf858153c367a397235d3e81136741e40e44faf1d (patch)
treebb346105a3e4c9d1cfc4211fe7c3c578e6668d94 /fs
parentBtrfs: Use correct values when updating inode i_size on fallocate (diff)
downloadlinux-f858153c367a397235d3e81136741e40e44faf1d.tar.xz
linux-f858153c367a397235d3e81136741e40e44faf1d.zip
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,
ACL_TYPE_ACCESS);
}
}
+ posix_acl_release(clone);
}
failed:
posix_acl_release(acl);