dovecot-2.1: mail-log: Memory leak fix

dovecot at dovecot.org dovecot at dovecot.org
Fri May 4 23:50:27 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/2a42fe2d42f3
changeset: 14505:2a42fe2d42f3
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 04 23:50:22 2012 +0300
description:
mail-log: Memory leak fix

diffstat:

 src/plugins/mail-log/mail-log-plugin.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 6dabd9545d48 -r 2a42fe2d42f3 src/plugins/mail-log/mail-log-plugin.c
--- a/src/plugins/mail-log/mail-log-plugin.c	Fri May 04 22:55:29 2012 +0300
+++ b/src/plugins/mail-log/mail-log-plugin.c	Fri May 04 23:50:22 2012 +0300
@@ -228,6 +228,8 @@
 		wanted_fields |= MAIL_FETCH_VIRTUAL_SIZE;
 
 	mail_add_temp_wanted_fields(mail, wanted_fields, wanted_headers);
+	if (wanted_headers != NULL)
+		mailbox_header_lookup_unref(&wanted_headers);
 }
 
 static void


More information about the dovecot-cvs mailing list