Whamcloud - gitweb
- memory leak (mconf site and lu_device)
authoralex <alex>
Mon, 23 Feb 2009 13:26:49 +0000 (13:26 +0000)
committeralex <alex>
Mon, 23 Feb 2009 13:26:49 +0000 (13:26 +0000)
lustre/obdclass/obd_mount.c

index 150e99a..ceb19b0 100644 (file)
@@ -1117,6 +1117,9 @@ static void stop_temp_site(struct super_block *sb)
         lu_env_fini(&env);
 
         lsi->lsi_dt_dev->dd_lu_dev.ld_site = NULL;
+
+        OBD_FREE_PTR(site);
+        OBD_FREE_PTR(mdev);
 }
 
 /* Start targets */
@@ -1595,9 +1598,6 @@ static struct dt_device *server_kernel_mount(struct super_block *sb)
 
         RETURN(lu2dt_dev(mdev->mcf_bottom));
 
-
-
-
         /* In the past, we have always used flags = 0.
            Note ext3/ldiskfs can't be mounted ro. */
         s_flags = sb->s_flags;