From f86e868a9905a547c36663c037e16f2b9c732856 Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 22 Aug 2002 22:47:25 +0000 Subject: [PATCH] - fix false leak message --- lustre/llite/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/llite/super.c b/lustre/llite/super.c index 01ec7c5..9ca0aaa 100644 --- a/lustre/llite/super.c +++ b/lustre/llite/super.c @@ -249,7 +249,9 @@ static void ll_clear_inode(struct inode *inode) struct lov_stripe_md *md = lli->lli_smd; if (md) { - OBD_FREE(md, md->lmd_easize); + int size = sizeof(*md) + + md->lmd_stripe_count * sizeof(struct lov_oinfo); + OBD_FREE(md, size); lli->lli_smd = NULL; } if (lli->lli_symlink_name) { -- 1.8.3.1