diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-20 17:26:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-20 17:26:13 +0400 |
commit | de94e18f57a0dccbab76efb3d574c0485a9e3700 (patch) | |
tree | c4f00bd29ba47fc2b01b56424113d0095a6bf765 | |
parent | 3b4613bbac88e43127133d100ab769061800d277 (diff) | |
download | rspamd-de94e18f57a0dccbab76efb3d574c0485a9e3700.tar.gz rspamd-de94e18f57a0dccbab76efb3d574c0485a9e3700.zip |
Another fix with reload command.
-rw-r--r-- | src/map.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; + } } |