summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-20 17:26:13 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-20 17:26:13 +0400
commitde94e18f57a0dccbab76efb3d574c0485a9e3700 (patch)
treec4f00bd29ba47fc2b01b56424113d0095a6bf765
parent3b4613bbac88e43127133d100ab769061800d277 (diff)
downloadrspamd-de94e18f57a0dccbab76efb3d574c0485a9e3700.tar.gz
rspamd-de94e18f57a0dccbab76efb3d574c0485a9e3700.zip
Another fix with reload command.
-rw-r--r--src/map.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map.c b/src/map.c
index c680aa287..e5e6d9145 100644
--- a/src/map.c
+++ b/src/map.c
@@ -1025,12 +1025,13 @@ remove_all_maps (void)
/* 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;
+ if (map_pool != NULL) {
+ memory_pool_delete (map_pool);
+ map_pool = NULL;
+ }
}