diff --git a/lustre/quota/lproc_quota.c b/lustre/quota/lproc_quota.c
index 27e24e3d3ca5205d0e26ea1fb46b92aa339a729e..4c5f2099df761ed030dbd16c11b6b152632d22bc 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;
 }