From: Vsevolod Stakhov Date: Mon, 20 Jun 2011 13:26:13 +0000 (+0400) Subject: Another fix with reload command. X-Git-Tag: 0.4.0~45 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=de94e18f57a0dccbab76efb3d574c0485a9e3700;p=rspamd.git Another fix with reload command. --- 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; + } }