Whamcloud - gitweb
fix a memleak.
authorhuanghua <huanghua>
Mon, 11 Sep 2006 07:28:10 +0000 (07:28 +0000)
committerhuanghua <huanghua>
Mon, 11 Sep 2006 07:28:10 +0000 (07:28 +0000)
lustre/mdd/mdd_handler.c

index b9b5942..4f21399 100644 (file)
@@ -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);
 }