]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
* Clean up cache items correctly
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 9 Jun 2010 11:50:58 +0000 (15:50 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 9 Jun 2010 11:50:58 +0000 (15:50 +0400)
src/symbols_cache.c

index 47ae81727885a1821ff7e8ca2489225cc04b86cf..fd8454c3151acbc50cb80137fcc8d531e1dd3b9e 100644 (file)
@@ -384,9 +384,11 @@ remove_dynamic_rules (struct symbols_cache *cache)
 
        if (cache->dynamic_map) {
                radix_tree_free (cache->dynamic_map);
+               cache->dynamic_map = NULL;
        }
        if (cache->negative_dynamic_map) {
                radix_tree_free (cache->negative_dynamic_map);
+               cache->negative_dynamic_map = NULL;
        }
 }