diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-27 12:47:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-27 12:47:08 +0100 |
commit | ca03fc2cc1d45800da06820eb55bb30d493a2aa8 (patch) | |
tree | a2e565a21b3e4490b90e2e702700edfcf2b5e364 /src/libserver/cfg_rcl.c | |
parent | c408720e08599ffecadaf1db2506d0afb5e72692 (diff) | |
download | rspamd-ca03fc2cc1d45800da06820eb55bb30d493a2aa8.tar.gz rspamd-ca03fc2cc1d45800da06820eb55bb30d493a2aa8.zip |
[Minor] Fix various static leaks
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 04bd9eefc..b219e1af8 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -3932,6 +3932,9 @@ rspamd_config_read (struct rspamd_config *cfg, } cfg->lang_det = rspamd_language_detector_init (cfg); + rspamd_mempool_add_destructor (cfg->cfg_pool, + (rspamd_mempool_destruct_t)rspamd_language_detector_unref, + cfg->lang_det); return TRUE; } |