diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-13 13:16:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-13 13:16:31 +0100 |
commit | bceef07323959f7e1a6bf09248c1ee08d5923bd0 (patch) | |
tree | 07a8f826890b731dd5165de58a06c2aa45ddedee /src/libserver | |
parent | 1f5d779be8d7da0cd0fe02aa9f1670167c9ab58f (diff) | |
download | rspamd-bceef07323959f7e1a6bf09248c1ee08d5923bd0.tar.gz rspamd-bceef07323959f7e1a6bf09248c1ee08d5923bd0.zip |
[Minor] Fix deinit order
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/cfg_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 8344ecc72..1788be3b8 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -334,7 +334,6 @@ rspamd_config_free (struct rspamd_config *cfg) g_hash_table_unref (cfg->trusted_keys); rspamd_re_cache_unref (cfg->re_cache); - rspamd_upstreams_library_unref (cfg->ups_ctx); g_ptr_array_free (cfg->c_modules, TRUE); if (cfg->lua_state && cfg->own_lua_state) { @@ -352,6 +351,7 @@ rspamd_config_free (struct rspamd_config *cfg) rspamd_monitored_ctx_destroy (cfg->monitored_ctx); } + rspamd_upstreams_library_unref (cfg->ups_ctx); HASH_CLEAR (hh, cfg->actions); rspamd_mempool_destructors_enforce (cfg->cfg_pool); |