* [PATCH]btrfs:fix a memory leak in acl
@ 2010-01-26 0:48 Yang Hongyang
0 siblings, 0 replies; only message in thread
From: Yang Hongyang @ 2010-01-26 0:48 UTC (permalink / raw)
To: chris.mason, linux-btrfs, linux-kernel
In btrfs_init_acl(),cloned acl is not released.Fix that.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
---
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 54f4798..6df6d6e 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -244,6 +244,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
ACL_TYPE_ACCESS);
}
}
+ posix_acl_release(clone);
}
failed:
posix_acl_release(acl);
--
1.6.5.2
--
Regards
Yang Hongyang
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-26 0:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-26 0:48 [PATCH]btrfs:fix a memory leak in acl Yang Hongyang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox