From: Jeremy Harris Date: Thu, 13 May 2021 20:31:16 +0000 (+0100) Subject: namedlist_block has to be allocated mutably, to cache lookups X-Git-Tag: exim-4.95-RC0~10^2~20 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/852645b30d28793d57dd46818011c7236c7a23ba namedlist_block has to be allocated mutably, to cache lookups paniclog from 5 - subprocess crashes --- diff --git a/src/src/readconf.c b/src/src/readconf.c index 4602dd262..0ad206172 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -3011,7 +3011,12 @@ read_named_list(tree_node **anchorp, int *numberp, int max, uschar *s, BOOL forcecache = FALSE; uschar *ss; tree_node *t; -namedlist_block * nb = store_get(sizeof(namedlist_block), FALSE); +int old_pool = store_pool; +namedlist_block * nb; + +store_pool = POOL_PERM; +nb = store_get(sizeof(namedlist_block), FALSE); +store_pool = old_pool; if (Ustrncmp(s, "_cache", 6) == 0) {