From: Timo Sirainen Date: Sun, 6 Feb 2022 13:20:08 +0000 (+0100) Subject: dict: Fix potential timeout leak at deinit X-Git-Tag: 2.3.19~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e8befe6b55e95b777a7da52f446f169bfbb7253;p=thirdparty%2Fdovecot%2Fcore.git dict: Fix potential timeout leak at deinit The deinit code could still trigger proctitle refresh. --- diff --git a/src/dict/main.c b/src/dict/main.c index bcf2bc7b60..14b1cea64f 100644 --- a/src/dict/main.c +++ b/src/dict/main.c @@ -130,8 +130,6 @@ static void main_init(void) static void main_deinit(void) { - timeout_remove(&to_proctitle); - /* wait for all dict operations to finish */ dict_init_cache_wait_all(); /* connections should no longer have any extra refcounts */ @@ -144,6 +142,7 @@ static void main_deinit(void) module_dir_unload(&modules); sql_drivers_deinit(); + timeout_remove(&to_proctitle); } int main(int argc, char *argv[])