aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-31 14:46:30 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-31 14:46:30 +0100
commit44c7c7e776487b5918c8570a6b876138953ec8ed (patch)
tree83010f57f65efb5e17ccda6897a13efbdf48d152 /src
parent89281e03aee94e205619c57790687d8af568ecc9 (diff)
downloadrspamd-44c7c7e776487b5918c8570a6b876138953ec8ed.tar.gz
rspamd-44c7c7e776487b5918c8570a6b876138953ec8ed.zip
Add destructor for a string list to config pool.
Diffstat (limited to 'src')
-rw-r--r--src/cfg_rcl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cfg_rcl.c b/src/cfg_rcl.c
index 562b734f5..6103627c1 100644
--- a/src/cfg_rcl.c
+++ b/src/cfg_rcl.c
@@ -479,5 +479,8 @@ rspamd_rcl_parse_struct_string_list (struct config_file *cfg, rspamd_cl_object_t
*target = g_list_prepend (*target, val);
}
+ /* Add a destructor */
+ memory_pool_add_destructor (cfg->cfg_pool, (pool_destruct_func)g_list_free, *target);
+
return TRUE;
}