From 79832854a1e143e10b0eb99d5afa70169c8f84e6 Mon Sep 17 00:00:00 2001 From: tappro Date: Fri, 20 Oct 2006 05:32:33 +0000 Subject: [PATCH] - another one fix to avoid memleak --- lustre/cmm/cmm_split.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lustre/cmm/cmm_split.c b/lustre/cmm/cmm_split.c index f4292a8..df79b78 100644 --- a/lustre/cmm/cmm_split.c +++ b/lustre/cmm/cmm_split.c @@ -75,11 +75,8 @@ int cmm_mdsnum_check(const struct lu_env *env, struct md_object *mp, /* Get LMV EA */ ma->ma_need = MA_INODE | MA_LMV; rc = mo_attr_get(env, mp, ma); - if (rc) - RETURN(rc); - /* Skip checking the slave dirs (mea_count is 0) */ - if (ma->ma_lmv->mea_count != 0) { + if (rc == 0 && ma->ma_lmv->mea_count != 0) { /* * Get stripe by name to check the name belongs to master dir, * otherwise return the -ERESTART -- 1.8.3.1