Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6440:e10e2147d994 HEAD
If data stack growing fails because of out-of-memory, something's probably
buggy so do assert() to dump core.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 20 Sep 2007 17:05:19 +0300 |
parents | b951f3e42322 |
children | 758016646062 |
files | src/lib/data-stack.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/data-stack.c Tue Sep 18 18:14:29 2007 +0300 +++ b/src/lib/data-stack.c Thu Sep 20 17:05:19 2007 +0300 @@ -200,9 +200,8 @@ block = GC_malloc(SIZEOF_MEMBLOCK + alloc_size); #endif if (block == NULL) { - i_fatal_status(FATAL_OUTOFMEM, "mem_block_alloc(): " - "Out of memory when allocating %"PRIuSIZE_T - " bytes", alloc_size + SIZEOF_MEMBLOCK); + i_panic("data stack: Out of memory when allocating %" + PRIuSIZE_T" bytes", alloc_size + SIZEOF_MEMBLOCK); } block->size = alloc_size; block->next = NULL;