aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/map.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-01 15:15:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-01 15:15:11 +0100
commita8c9abd046add08c8ac8f91c3c12d5c823fb44e3 (patch)
tree6ed54d8c8226d15d2c314818f9fa008f8d0fb2c6 /src/libutil/map.c
parent9ae0493f954ac0186541aa567b55adbb436b33db (diff)
downloadrspamd-a8c9abd046add08c8ac8f91c3c12d5c823fb44e3.tar.gz
rspamd-a8c9abd046add08c8ac8f91c3c12d5c823fb44e3.zip
Rework fuzzy storage radix.
Diffstat (limited to 'src/libutil/map.c')
-rw-r--r--src/libutil/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index 13af9df7b..7d0313d95 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -917,7 +917,7 @@ read_radix_list (rspamd_mempool_t * pool,
struct map_cb_data *data)
{
if (data->cur_data == NULL) {
- data->cur_data = radix_tree_create_compressed ();
+ data->cur_data = radix_create_compressed ();
}
return abstract_parse_list (pool,
chunk,
@@ -930,6 +930,6 @@ void
fin_radix_list (rspamd_mempool_t * pool, struct map_cb_data *data)
{
if (data->prev_data) {
- radix_tree_destroy_compressed (data->prev_data);
+ radix_destroy_compressed (data->prev_data);
}
}