]> source.dussan.org Git - rspamd.git/commitdiff
Fix memory leak in html nodes.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 1 Jan 2015 15:12:00 +0000 (15:12 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 1 Jan 2015 15:12:00 +0000 (15:12 +0000)
src/libserver/html.c

index 9c6fd0888b04b8b2b968fbb1625cd6e653c57d9d..5055a9aae22db82a68b657b8358ed4876f4fbafe 100644 (file)
@@ -990,6 +990,10 @@ add_html_node (struct rspamd_task *task,
                                return FALSE;
                        }
                }
+               else {
+                       /* Destroy ignored nodes */
+                       g_node_destroy (new);
+               }
        }
 
        return TRUE;