]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: data-stack - Don't set stack_block.next=NULL after mem_block_alloc() already...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 31 Mar 2021 09:52:47 +0000 (12:52 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 4 May 2021 07:02:35 +0000 (07:02 +0000)
src/lib/data-stack.c

index 895a6950f4ce60fec05b5c55dd878a265a0eb102..c6a706763a10796025a691027a53149af77d276b 100644 (file)
@@ -406,7 +406,6 @@ static void *t_malloc_real(size_t size, bool permanent)
                warn = TRUE;
 #endif
 
-               block->next = NULL;
                current_block->next = block;
                current_block = block;
        }
@@ -599,7 +598,6 @@ void data_stack_init(void)
        outofmem_area.block.canary = BLOCK_CANARY;
 
        current_block = mem_block_alloc(INITIAL_STACK_SIZE);
-       current_block->next = NULL;
 
        current_frame_block = NULL;
        frame_pos = BLOCK_FRAME_COUNT-1;