Skip to content
Snippets Groups Projects
Commit adb9d222 authored by tianzy's avatar tianzy
Browse files

Branch b1_6

fix a mem leakage in 15058
b=15058
i=johann
i=tianzy
parent 643dd22a
No related branches found
No related tags found
No related merge requests found
...@@ -724,6 +724,10 @@ int lquota_proc_cleanup(struct lustre_quota_ctxt *qctxt) ...@@ -724,6 +724,10 @@ int lquota_proc_cleanup(struct lustre_quota_ctxt *qctxt)
{ {
if (!qctxt || !qctxt->lqc_proc_dir) if (!qctxt || !qctxt->lqc_proc_dir)
return -EINVAL; return -EINVAL;
if (qctxt->lqc_stats != NULL)
lprocfs_free_stats(&qctxt->lqc_stats);
lprocfs_remove(&qctxt->lqc_proc_dir); lprocfs_remove(&qctxt->lqc_proc_dir);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment