From: alex Date: Mon, 23 Feb 2009 13:26:49 +0000 (+0000) Subject: - memory leak (mconf site and lu_device) X-Git-Tag: GIT_EPOCH_B_HD_KDMU~2^4~167 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=cc279b47faf2a2c527d87960df5ae66da1cf1453;p=fs%2Flustre-release.git - memory leak (mconf site and lu_device) --- diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 150e99a..ceb19b0 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -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;