From ca03fc2cc1d45800da06820eb55bb30d493a2aa8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 27 Sep 2019 12:47:08 +0100 Subject: [Minor] Fix various static leaks --- src/libserver/cfg_rcl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libserver/cfg_rcl.c') 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; } -- cgit v1.2.3