aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-18 17:07:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-18 17:07:40 +0000
commit0427217b5fbdb0842b0ab4c06758b7e76c8a8f5b (patch)
treedba6995b0ea68967788703610f70f58b4222efb2 /src/libserver/cfg_utils.c
parent265cdfde91800ef2963084f02dfde521c4f1b9ac (diff)
downloadrspamd-0427217b5fbdb0842b0ab4c06758b7e76c8a8f5b.tar.gz
rspamd-0427217b5fbdb0842b0ab4c06758b7e76c8a8f5b.zip
Fix some race conditions
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 23de0bef2..ce704f8cf 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -226,10 +226,10 @@ rspamd_config_free (struct rspamd_config *cfg)
g_list_free (cfg->classifiers);
g_list_free (cfg->metrics_list);
- lua_close (cfg->lua_state);
rspamd_symbols_cache_destroy (cfg->cache);
REF_RELEASE (cfg->libs_ctx);
rspamd_mempool_delete (cfg->cfg_pool);
+ lua_close (cfg->lua_state);
g_slice_free1 (sizeof (*cfg), cfg);
}