From 0427217b5fbdb0842b0ab4c06758b7e76c8a8f5b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 18 Nov 2015 17:07:40 +0000 Subject: Fix some race conditions --- src/libserver/cfg_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libserver/cfg_utils.c') 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); } -- cgit v1.2.3