diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-06 15:22:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-06 15:22:07 +0100 |
commit | e2bc6faca69eeef27cf79f134d7517f424ff196d (patch) | |
tree | 0bd39175bdb39c7ca82f41cda69183b06af23b51 /lualib | |
parent | d4871e22d6a02939283e50407d4d839f2119a9b7 (diff) | |
download | rspamd-e2bc6faca69eeef27cf79f134d7517f424ff196d.tar.gz rspamd-e2bc6faca69eeef27cf79f134d7517f424ff196d.zip |
[Minor] Do not leak memory
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/rspamadm/dmarc_report.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/rspamadm/dmarc_report.lua b/lualib/rspamadm/dmarc_report.lua index d9ae40e99..164029248 100644 --- a/lualib/rspamadm/dmarc_report.lua +++ b/lualib/rspamadm/dmarc_report.lua @@ -99,7 +99,7 @@ local redis_attrs = { log_obj = rspamd_config, resolver = rspamadm_dns_resolver, } -local pool = rspamd_mempool.create() +local pool local function load_config(opts) local _r,err = rspamd_config:load_ucl(opts['config']) @@ -618,6 +618,7 @@ end local function handler(args) local opts = parser:parse(args) + pool = rspamd_mempool.create() load_config(opts) rspamd_url.init(rspamd_config:get_tld_path()) |