From: niu Date: Wed, 6 Jul 2005 07:53:00 +0000 (+0000) Subject: minor fix in lmv_get_mea_and_update_object(). X-Git-Tag: 1.4.10~933 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=f43e794e40d99a977cc4c66cfdf808828ff8a30f;p=fs%2Flustre-release.git minor fix in lmv_get_mea_and_update_object(). --- diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index bd74795..cd8e337 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -887,8 +887,9 @@ int lmv_get_mea_and_update_object(struct obd_export *exp, obj = lmv_create_obj(exp, id, md.mea); if (IS_ERR(obj)) rc = PTR_ERR(obj); - - lmv_put_obj(obj); + else + lmv_put_obj(obj); + obd_free_memmd(exp, (struct lov_stripe_md **)&md.mea); EXIT;