diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-24 19:45:30 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-24 19:45:30 +0300 |
commit | 3f610ca7f6341261112fc372a8f53b5c40fb6be6 (patch) | |
tree | 9c231f781c7c4be94b05b30dad6076f4206310d0 /src/dns.c | |
parent | 121efbcddf8ec41eea91aa80574dab3730bf8976 (diff) | |
download | rspamd-3f610ca7f6341261112fc372a8f53b5c40fb6be6.tar.gz rspamd-3f610ca7f6341261112fc372a8f53b5c40fb6be6.zip |
Fix several memory leaks in rspamd.
Diffstat (limited to 'src/dns.c')
-rw-r--r-- | src/dns.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -955,6 +955,9 @@ dns_parse_reply (guint8 *in, gint r, struct rspamd_dns_resolver *resolver, struc rep->elements = g_list_prepend (rep->elements, elt); } } + if (rep->elements) { + memory_pool_add_destructor (req->pool, (pool_destruct_func)g_list_free, rep->elements); + } return rep; } |