dovecot-2.0: quota: Fixed a memory leak on deinit.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 23 15:39:01 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/37df22ecd572
changeset: 11618:37df22ecd572
user: Timo Sirainen <tss at iki.fi>
date: Wed Jun 23 13:38:55 2010 +0100
description:
quota: Fixed a memory leak on deinit.
Based on patch by Mike Abbott / Apple.
diffstat:
src/plugins/quota/quota-storage.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 29178cec0506 -r 37df22ecd572 src/plugins/quota/quota-storage.c
--- a/src/plugins/quota/quota-storage.c Tue Jun 22 22:46:11 2010 +0100
+++ b/src/plugins/quota/quota-storage.c Wed Jun 23 13:38:55 2010 +0100
@@ -426,9 +426,12 @@
static void quota_user_deinit(struct mail_user *user)
{
struct quota_user *quser = QUOTA_USER_CONTEXT(user);
+ struct quota_settings *quota_set = quser->quota->set;
quota_deinit(&quser->quota);
quser->module_ctx.super.deinit(user);
+
+ quota_settings_deinit("a_set);
}
void quota_mail_user_created(struct mail_user *user)
More information about the dovecot-cvs
mailing list