aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-03 16:00:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-03 16:00:24 +0100
commit108d7c56bf344ca5613e0fcc966926c5aed0f536 (patch)
tree4a6506b11d6f69886d5e0ed81544d9b0cdc4d20b /src/libmime
parenta0f332db7a9d85bc29245bda42660fb35e27366b (diff)
downloadrspamd-108d7c56bf344ca5613e0fcc966926c5aed0f536.tar.gz
rspamd-108d7c56bf344ca5613e0fcc966926c5aed0f536.zip
[Fix] Fix memory leak in language detector during reloads
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/lang_detection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index 7bfcf0164..143dc3f38 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -752,6 +752,8 @@ rspamd_language_detector_dtor (struct rspamd_lang_detector *d)
kh_foreach_key (d->stop_words_norm, tok, {
g_free (tok); /* String is embedded and freed automatically */
});
+
+ kh_destroy (rspamd_stopwords_hash, d->stop_words_norm);
}
}