diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-26 12:43:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-26 12:43:34 +0100 |
commit | a0069bc1d16440c96c6af94c8d6981903bce39dd (patch) | |
tree | 3c3c3af5e86b84444659267c8a9f56a8db96dc11 | |
parent | 987dbf44877c634fb242f00fe8e7d096b7a889af (diff) | |
download | rspamd-a0069bc1d16440c96c6af94c8d6981903bce39dd.tar.gz rspamd-a0069bc1d16440c96c6af94c8d6981903bce39dd.zip |
[Minor] Destroy mempool on config unload
-rw-r--r-- | src/plugins/lua/settings.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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) |