Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7393:e569788da4e8 HEAD
Memory leak fix (by Diego Liziero)
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 10 Mar 2008 03:09:06 +0200 |
parents | 88f0c016f766 |
children | 2d3b9a6d23f5 |
files | src/lib-index/mail-transaction-log.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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)