aboutsummaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-05 16:57:55 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-05 16:57:55 +0400
commitbae637bec8e9c23668cbacbb9f5a1bd829cae487 (patch)
treedabce6274bee145caca081a5dba6523783b5b749 /src/map.c
parent10a3c7a278b569bc978614f3b6e78d29f10a87e0 (diff)
downloadrspamd-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.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index b864c6a42..12b833ae0 100644
--- a/src/map.c
+++ b/src/map.c
@@ -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;
+}
+