From 3e8befe6b55e95b777a7da52f446f169bfbb7253 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 6 Feb 2022 14:20:08 +0100 Subject: [PATCH] dict: Fix potential timeout leak at deinit The deinit code could still trigger proctitle refresh. --- src/dict/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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[]) -- 2.47.3