[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4B5E3BD7.9000001@cn.fujitsu.com>
Date: Tue, 26 Jan 2010 08:48:23 +0800
From: Yang Hongyang <yanghy@...fujitsu.com>
To: chris.mason@...cle.com, linux-btrfs@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH]btrfs:fix a memory leak in acl
In btrfs_init_acl(),cloned acl is not released.Fix that.
Signed-off-by: Yang Hongyang <yanghy@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists