dovecot-2.0: file_cache_set_size(): Cleanup properly after mmap(...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 23 19:05:43 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/a8c2e04307c6
changeset: 12992:a8c2e04307c6
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 28544b4191f3 -r a8c2e04307c6 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