aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-28 15:14:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-28 15:14:33 +0100
commitb2b9cfa6161a98d5d4d074573f99fdac6cb24556 (patch)
tree7d531529f1798da141faeb17b0df1b47fc08896a /src/plugins
parent4656f5525d110e3951672ad66a29cfb395f7d32f (diff)
downloadrspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.tar.gz
rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.zip
[Minor] Further portion of g_slice elimination
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/surbl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index a44524e70..4a8dc9654 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -110,7 +110,7 @@ exceptions_free_value (gpointer v)
rspamd_ftok_t *val = v;
g_free ((gpointer)val->begin);
- g_slice_free1 (sizeof (*val), val);
+ g_free (val);
}
static void
@@ -134,7 +134,7 @@ exception_insert (gpointer st, gconstpointer key, gconstpointer value)
return;
}
- val = g_slice_alloc (sizeof (rspamd_ftok_t));
+ val = g_malloc (sizeof (rspamd_ftok_t));
val->begin = g_strdup (key);
val->len = strlen (key);
@@ -214,7 +214,7 @@ redirector_insert (gpointer st, gconstpointer key, gconstpointer value)
}
pat = rspamd_fstring_new_init (begin, p - begin);
- tok = g_slice_alloc (sizeof (*tok));
+ tok = g_malloc0 (sizeof (*tok));
tok->begin = pat->str;
tok->len = pat->len;