]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Plug memory leak
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Jan 2018 18:50:29 +0000 (18:50 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Jan 2018 18:50:29 +0000 (18:50 +0000)
src/libmime/lang_detection.c

index 9c174ca23eb7d09e7cb4bcd83b4cc1be9516a737..6b71e45a19b61befdc85ee9c319f07838114b12f 100644 (file)
@@ -669,6 +669,7 @@ rspamd_language_detector_detect_type (struct rspamd_task *task,
 
        /* Filter negligible candidates */
        rspamd_language_detector_filter_negligible (task, candidates);
+       g_free (selected_words);
 }
 
 static gint