diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-01 15:12:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-01 15:12:00 +0000 |
commit | 9a92839e4e1a990c4054847460592b3bd42406bf (patch) | |
tree | 7320bacc1e7a92168b06a48187750c49b1a11219 /src | |
parent | 4406433d18e886d35ab674a8265fc9737a1b44af (diff) | |
download | rspamd-9a92839e4e1a990c4054847460592b3bd42406bf.tar.gz rspamd-9a92839e4e1a990c4054847460592b3bd42406bf.zip |
Fix memory leak in html nodes.
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/html.c | 4 |
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; |