diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-03 16:00:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-03 16:00:24 +0100 |
commit | 108d7c56bf344ca5613e0fcc966926c5aed0f536 (patch) | |
tree | 4a6506b11d6f69886d5e0ed81544d9b0cdc4d20b /src/libmime | |
parent | a0f332db7a9d85bc29245bda42660fb35e27366b (diff) | |
download | rspamd-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.c | 2 |
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); } } |