From: Timo Sirainen Date: Sun, 16 May 2004 23:29:27 +0000 (+0300) Subject: Dotlocking: Don't leave the log infinitely locked after rotation X-Git-Tag: 1.1.alpha1~4080 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2608cf201e72db4e21e09854cd0b79b0c06e94ba;p=thirdparty%2Fdovecot%2Fcore.git Dotlocking: Don't leave the log infinitely locked after rotation --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-transaction-log.c b/src/lib-index/mail-transaction-log.c index e931f10c73..eb9202d435 100644 --- a/src/lib-index/mail-transaction-log.c +++ b/src/lib-index/mail-transaction-log.c @@ -235,6 +235,9 @@ mail_transaction_log_file_lock(struct mail_transaction_log_file *file, static void mail_transaction_log_file_close(struct mail_transaction_log_file *file) { + if (file->lock_type != F_UNLCK) + (void)mail_transaction_log_file_lock(file, F_UNLCK); + if (file->buffer != NULL) buffer_free(file->buffer);