]> source.dussan.org Git - rspamd.git/commitdiff
Another fix with reload command.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 20 Jun 2011 13:26:13 +0000 (17:26 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 20 Jun 2011 13:26:13 +0000 (17:26 +0400)
src/map.c

index c680aa28781d67d3efd496130b7b2f89ac33c317..e5e6d9145a8111d41d7280ebfe34d3267ae7b27a 100644 (file)
--- 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;
+       }
 }