From 4e1f66947429d0ad80374c64d89b7c2c701c0483 Mon Sep 17 00:00:00 2001 From: huanghua Date: Mon, 11 Sep 2006 07:28:10 +0000 Subject: [PATCH] fix a memleak. --- lustre/mdd/mdd_handler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/mdd/mdd_handler.c b/lustre/mdd/mdd_handler.c index b9b5942..4f21399 100644 --- a/lustre/mdd/mdd_handler.c +++ b/lustre/mdd/mdd_handler.c @@ -1640,6 +1640,8 @@ out: /* finish mdd_lov_create() stuff */ mdd_lov_create_finish(ctxt, mdd, rc); mdd_trans_stop(ctxt, mdd, rc, handle); + if (lmm) + OBD_FREE(lmm, lmm_size); RETURN(rc); } -- 1.8.3.1