From: tianzy Date: Wed, 30 Jul 2008 01:48:19 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: GIT_EPOCH_B_RELEASE_1_6_7~2^3~419 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=adb9d2224fecffc3f121d874d2101b0e07d975f5;p=fs%2Flustre-release.git Branch b1_6 fix a mem leakage in 15058 b=15058 i=johann i=tianzy --- diff --git a/lustre/quota/lproc_quota.c b/lustre/quota/lproc_quota.c index 27e24e3..4c5f209 100644 --- a/lustre/quota/lproc_quota.c +++ b/lustre/quota/lproc_quota.c @@ -724,6 +724,10 @@ int lquota_proc_cleanup(struct lustre_quota_ctxt *qctxt) { if (!qctxt || !qctxt->lqc_proc_dir) return -EINVAL; + + if (qctxt->lqc_stats != NULL) + lprocfs_free_stats(&qctxt->lqc_stats); + lprocfs_remove(&qctxt->lqc_proc_dir); return 0; }