aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Hongyang <yanghy@cn.fujitsu.com>2010-01-26 00:48:23 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-13 13:20:06 -0700
commitaeda1ce85788fe3a1dfa65d6b616c3d7c83dfc2d (patch)
treeda0885653a321b30bf5e2d234e4b8e8b4cfa8cc5
parentccfc4449f80353e46b624ea92dc72e3197a0a09b (diff)
Btrfs: fix a memory leak in btrfs_init_acl
commit f858153c367a397235d3e81136741e40e44faf1d upstream. 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> Acked-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-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 c40ca80a0b7..12d7be8df56 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -272,6 +272,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
ACL_TYPE_ACCESS);
}
}
+ posix_acl_release(clone);
}
failed:
posix_acl_release(acl);