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/hash.c | |
parent | 4656f5525d110e3951672ad66a29cfb395f7d32f (diff) | |
download | rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.tar.gz rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.zip |
[Minor] Further portion of g_slice elimination
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r-- | src/libutil/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/hash.c b/src/libutil/hash.c index 1afe947ee..18b01f2ec 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -60,7 +60,7 @@ rspamd_lru_destroy_node (gpointer value) elt->hash->value_destroy (elt->data); } - g_slice_free1 (sizeof (*elt), elt); + g_free (elt); } } @@ -190,7 +190,7 @@ rspamd_lru_create_node (rspamd_lru_hash_t *hash, { rspamd_lru_element_t *node; - node = g_slice_alloc (sizeof (rspamd_lru_element_t)); + node = g_malloc (sizeof (rspamd_lru_element_t)); node->data = value; node->key = key; node->ttl = TIME_TO_TS (ttl); |