]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Grow initial event pool size to 1024 bytes
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 22 Nov 2021 16:23:28 +0000 (17:23 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 20 Dec 2021 11:52:38 +0000 (11:52 +0000)
The old 64 bytes size wasn't enough to allocate even the struct event itself.

src/lib/lib-event.c

index b39983ceaf95fa3bee2b03fdd49b203464a0ca4b..e0ee79d5cfc4d1f27270ed2bb45653de83128f34 100644 (file)
@@ -391,7 +391,7 @@ event_create_internal(struct event *parent, const char *source_filename,
                      unsigned int source_linenum)
 {
        struct event *event;
-       pool_t pool = pool_alloconly_create(MEMPOOL_GROWING"event", 64);
+       pool_t pool = pool_alloconly_create(MEMPOOL_GROWING"event", 1024);
 
        event = p_new(pool, struct event, 1);
        event->event_passthrough = event_passthrough_vfuncs;