dovecot-1.1: Memory leak fix (by Diego Liziero)
dovecot at dovecot.org
dovecot at dovecot.org
Mon Mar 10 03:09:11 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/e569788da4e8
changeset: 7393:e569788da4e8
user: Timo Sirainen <tss at iki.fi>
date: Mon Mar 10 03:09:06 2008 +0200
description:
Memory leak fix (by Diego Liziero)
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/lib-index/mail-transaction-log.c | 4 +++-
diffs (15 lines):
diff -r 88f0c016f766 -r e569788da4e8 src/lib-index/mail-transaction-log.c
--- a/src/lib-index/mail-transaction-log.c Sun Mar 09 12:51:55 2008 +0200
+++ b/src/lib-index/mail-transaction-log.c Mon Mar 10 03:09:06 2008 +0200
@@ -383,8 +383,10 @@ int mail_transaction_log_find_file(struc
path = t_strconcat(log->index->filepath,
MAIL_TRANSACTION_LOG_SUFFIX".2", NULL);
file = mail_transaction_log_file_alloc(log, path);
- if ((ret = mail_transaction_log_file_open(file, TRUE)) <= 0)
+ if ((ret = mail_transaction_log_file_open(file, TRUE)) <= 0) {
+ mail_transaction_log_file_free(&file);
return ret;
+ }
/* but is it what we expected? */
if (file->hdr.file_seq != file_seq)
More information about the dovecot-cvs
mailing list