dovecot-2.2: lib-storage: Fixed memory leak in mail_add_temp_wan...

dovecot at dovecot.org dovecot at dovecot.org
Sun Nov 17 17:15:55 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/a04c7365299e
changeset: 16976:a04c7365299e
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Nov 17 17:15:42 2013 +0200
description:
lib-storage: Fixed memory leak in mail_add_temp_wanted_fields()

diffstat:

 src/lib-storage/index/index-mail.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 10462996fa32 -r a04c7365299e src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c	Sun Nov 17 16:59:33 2013 +0200
+++ b/src/lib-storage/index/index-mail.c	Sun Nov 17 17:15:42 2013 +0200
@@ -1603,6 +1603,8 @@
 		for (i = 0; i < headers->count; i++)
 			array_append(&names, &headers->name[i], 1);
 		array_append_zero(&names);
+		if (data->wanted_headers != NULL)
+			mailbox_header_lookup_unref(&data->wanted_headers);
 		data->wanted_headers =
 			mailbox_header_lookup_init(_mail->box,
 						   array_idx(&names, 0));


More information about the dovecot-cvs mailing list