Quellcode durchsuchen

Revert "[Fix] Postpone lua state destruction to allow lua dtors to be used"

This reverts commit 5275cae751.
tags/2.0
Vsevolod Stakhov vor 4 Jahren
Ursprung
Commit
27a72f0afe
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5
    5
      src/libserver/cfg_utils.c

+ 5
- 5
src/libserver/cfg_utils.c Datei anzeigen

@@ -296,6 +296,11 @@ rspamd_config_free (struct rspamd_config *cfg)
rspamd_upstreams_library_unref (cfg->ups_ctx);
g_ptr_array_free (cfg->c_modules, TRUE);

if (cfg->lua_state && cfg->own_lua_state) {
lua_thread_pool_free (cfg->lua_thread_pool);
lua_close (cfg->lua_state);
}

#ifdef WITH_HIREDIS
if (cfg->redis_pool) {
rspamd_redis_pool_destroy (cfg->redis_pool);
@@ -314,11 +319,6 @@ rspamd_config_free (struct rspamd_config *cfg)
g_free (cfg->checksum);
}

if (cfg->lua_state && cfg->own_lua_state) {
lua_thread_pool_free (cfg->lua_thread_pool);
lua_close (cfg->lua_state);
}

REF_RELEASE (cfg->libs_ctx);

DL_FOREACH_SAFE (cfg->log_pipes, lp, ltmp) {

Laden…
Abbrechen
Speichern