[dovecot-cvs] dovecot/src/lib-mail message-decoder.c,1.3,1.4

tss at dovecot.org tss at dovecot.org
Sat Dec 9 23:22:10 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv20255/lib-mail

Modified Files:
	message-decoder.c 
Log Message:
Memory leak fixes



Index: message-decoder.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-decoder.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- message-decoder.c	9 Dec 2006 21:53:13 -0000	1.3
+++ message-decoder.c	9 Dec 2006 23:22:08 -0000	1.4
@@ -58,8 +58,12 @@
 
 	*_ctx = NULL;
 
+	if (ctx->charset_trans != NULL)
+		charset_to_utf8_end(&ctx->charset_trans);
+
 	buffer_free(ctx->buf);
 	buffer_free(ctx->buf2);
+	i_free(ctx->content_charset);
 	i_free(ctx);
 }
 



More information about the dovecot-cvs mailing list