diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-28 15:14:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-28 15:14:33 +0100 |
commit | b2b9cfa6161a98d5d4d074573f99fdac6cb24556 (patch) | |
tree | 7d531529f1798da141faeb17b0df1b47fc08896a /src/libutil/radix.c | |
parent | 4656f5525d110e3951672ad66a29cfb395f7d32f (diff) | |
download | rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.tar.gz rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.zip |
[Minor] Further portion of g_slice elimination
Diffstat (limited to 'src/libutil/radix.c')
-rw-r--r-- | src/libutil/radix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c index b44391bfc..bb295d7d1 100644 --- a/src/libutil/radix.c +++ b/src/libutil/radix.c @@ -114,7 +114,7 @@ radix_create_compressed (void) { radix_compressed_t *tree; - tree = g_slice_alloc (sizeof (*tree)); + tree = g_malloc0 (sizeof (*tree)); if (tree == NULL) { return NULL; } @@ -131,7 +131,7 @@ radix_destroy_compressed (radix_compressed_t *tree) { if (tree) { rspamd_mempool_delete (tree->pool); - g_slice_free1 (sizeof (*tree), tree); + g_free (tree); } } |