aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-01 15:12:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-01 15:12:00 +0000
commit9a92839e4e1a990c4054847460592b3bd42406bf (patch)
tree7320bacc1e7a92168b06a48187750c49b1a11219 /src
parent4406433d18e886d35ab674a8265fc9737a1b44af (diff)
downloadrspamd-9a92839e4e1a990c4054847460592b3bd42406bf.tar.gz
rspamd-9a92839e4e1a990c4054847460592b3bd42406bf.zip
Fix memory leak in html nodes.
Diffstat (limited to 'src')
-rw-r--r--src/libserver/html.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 9c6fd0888..5055a9aae 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -990,6 +990,10 @@ add_html_node (struct rspamd_task *task,
return FALSE;
}
}
+ else {
+ /* Destroy ignored nodes */
+ g_node_destroy (new);
+ }
}
return TRUE;