commit 108d7c5: [Fix] Fix memory leak in language detector during reloads
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri May 3 15:07:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-05-03 16:00:24 +0100
URL: https://github.com/rspamd/rspamd/commit/108d7c56bf344ca5613e0fcc966926c5aed0f536
[Fix] Fix memory leak in language detector during reloads
---
src/libmime/lang_detection.c | 2 ++
1 file changed, 2 insertions(+)
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);
}
}
More information about the Commits
mailing list