dovecot-2.1: file_cache_set_size(): Cleanup properly after mmap(...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 23 19:04:22 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/db51a627d726
changeset: 13751:db51a627d726
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 23 19:04:15 2011 +0200
description:
file_cache_set_size(): Cleanup properly after mmap() failure.
diffstat:
src/lib/file-cache.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r fb0ffce5a0ba -r db51a627d726 src/lib/file-cache.c
--- a/src/lib/file-cache.c Wed Nov 23 19:01:28 2011 +0200
+++ b/src/lib/file-cache.c Wed Nov 23 19:04:15 2011 +0200
@@ -70,6 +70,7 @@
cache->mmap_base = mmap_anon(size);
if (cache->mmap_base == MAP_FAILED) {
i_error("mmap_anon(%"PRIuUOFF_T") failed: %m", size);
+ cache->mmap_base = NULL;
cache->mmap_length = 0;
return -1;
}
More information about the dovecot-cvs
mailing list