commit a0069bc: [Minor] Destroy mempool on config unload

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jun 26 12:07:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-26 12:43:34 +0100
URL: https://github.com/rspamd/rspamd/commit/a0069bc1d16440c96c6af94c8d6981903bce39dd

[Minor] Destroy mempool on config unload

---
 src/plugins/lua/settings.lua | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index f00799758..084f51467 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -1096,3 +1096,9 @@ rspamd_config:register_symbol({
   priority = 10,
   flags = 'empty,nostat,explicit_disable,ignore_passthrough',
 })
+
+rspamd_config:add_config_unload(function()
+  if settings_map_pool then
+    settings_map_pool:destroy()
+  end
+end)


More information about the Commits mailing list