Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72738f1
)
Branch b1_8
author
tianzy
<tianzy>
Wed, 30 Jul 2008 01:57:45 +0000
(
01:57
+0000)
committer
tianzy
<tianzy>
Wed, 30 Jul 2008 01:57:45 +0000
(
01:57
+0000)
fix a mem leakage in 15058
b=15058
i=johann
i=tianzy
lustre/quota/lproc_quota.c
patch
|
blob
|
history
diff --git
a/lustre/quota/lproc_quota.c
b/lustre/quota/lproc_quota.c
index
27e24e3
..
4435aca
100644
(file)
--- 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;
}