Browse Source

Add destructor for a string list to config pool.

tags/0.6.0
Vsevolod Stakhov 10 years ago
parent
commit
44c7c7e776
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/cfg_rcl.c

+ 3
- 0
src/cfg_rcl.c View File

@@ -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;
}

Loading…
Cancel
Save