diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-06 17:15:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-06 17:15:24 +0100 |
commit | 4d1bc130ebe0308bd96bdae0c89942c04bb1fdff (patch) | |
tree | 56d30801e79aff6025a48e31e14e52e4bf862fc1 | |
parent | b359a956d4a8641059f6b4d789219414ed8a05d8 (diff) | |
download | rspamd-4d1bc130ebe0308bd96bdae0c89942c04bb1fdff.tar.gz rspamd-4d1bc130ebe0308bd96bdae0c89942c04bb1fdff.zip |
[Minor] Fix desctruction order
-rw-r--r-- | src/libserver/cfg_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index f0b0a079a..3d5b69050 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -258,10 +258,12 @@ rspamd_config_free (struct rspamd_config *cfg) } #endif - rspamd_mempool_delete (cfg->cfg_pool); if (cfg->monitored_ctx) { rspamd_monitored_ctx_destroy (cfg->monitored_ctx); } + + rspamd_mempool_delete (cfg->cfg_pool); + if (cfg->checksum) { g_free (cfg->checksum); } |