aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/lang_detection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime/lang_detection.c')
-rw-r--r--src/libmime/lang_detection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index 5c8d96f66..f4811f18b 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -795,6 +795,10 @@ rspamd_language_detector_init (struct rspamd_config *cfg)
(gint)ret->languages->len,
(gint)total);
+ if (stop_words) {
+ ucl_object_unref (stop_words);
+ }
+
REF_INIT_RETAIN (ret, rspamd_language_detector_dtor);
rspamd_mempool_add_destructor (cfg->cfg_pool,
(rspamd_mempool_destruct_t)rspamd_language_detector_unref,