]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Plug memory leak in chartable module
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 10 Apr 2017 15:35:03 +0000 (16:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 10 Apr 2017 15:35:03 +0000 (16:35 +0100)
src/plugins/chartable.c

index aed8ee8047e2c7a36cfe109b3ee65ad929fc8745..1c50f519446a3aecd246de4abfbdd6e8b00c80f4 100644 (file)
@@ -437,6 +437,10 @@ chartable_symbol_callback (struct rspamd_task *task, void *unused)
 
                        }
                }
+
+               if (words) {
+                       g_array_free (words, TRUE);
+               }
        }
 }