diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-05 16:57:55 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-05 16:57:55 +0400 |
commit | bae637bec8e9c23668cbacbb9f5a1bd829cae487 (patch) | |
tree | dabce6274bee145caca081a5dba6523783b5b749 /src/map.c | |
parent | 10a3c7a278b569bc978614f3b6e78d29f10a87e0 (diff) | |
download | rspamd-bae637bec8e9c23668cbacbb9f5a1bd829cae487.tar.gz rspamd-bae637bec8e9c23668cbacbb9f5a1bd829cae487.zip |
* Fix stupid error with surbl module reconfig (another one, blame me)
* Do not show duplicate urls in url header
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -831,3 +831,22 @@ start_map_watch (void) cur = g_list_next (cur); } } + +void +remove_all_maps (void) +{ + GList *cur = maps; + struct rspamd_map *map; + + /* First of all do synced read of data */ + while (cur) { + map = cur->data; + event_del (&map->ev); + cur = g_list_next (cur); + } + g_list_free (maps); + maps = NULL; + memory_pool_delete (map_pool); + map_pool = NULL; +} + |