From 9363983d0c5dfa7fafb7aa9422355c7afbc22f28 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 10 Feb 2025 14:18:19 +0100 Subject: [PATCH] Old config should not be freed early when reconfiguring in fast succession --- conf/conf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/conf/conf.c b/conf/conf.c index cfe484cbc..73e0ae050 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -225,8 +225,11 @@ config_free_old(void) tm_stop(config_timer); undo_available = 0; - config_free(old_config); - old_config = NULL; + if (!configuring) + { + config_free(old_config); + old_config = NULL; + } } struct global_runtime global_runtime_internal[2] = {{ -- 2.47.2