summaryrefslogtreecommitdiffstats
path: root/src/libserver/fuzzy_backend.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-28 12:28:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-28 12:28:38 +0100
commit4656f5525d110e3951672ad66a29cfb395f7d32f (patch)
tree4d53af775cc1b00e6d1fc67dbc25ce7e7c2bde79 /src/libserver/fuzzy_backend.c
parentaed03ec17f71d9bf9fcb43c0463b834331623101 (diff)
downloadrspamd-4656f5525d110e3951672ad66a29cfb395f7d32f.tar.gz
rspamd-4656f5525d110e3951672ad66a29cfb395f7d32f.zip
[Minor] More g_slice cleanups
Diffstat (limited to 'src/libserver/fuzzy_backend.c')
-rw-r--r--src/libserver/fuzzy_backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c
index 2b32d4705..b2bf90d99 100644
--- a/src/libserver/fuzzy_backend.c
+++ b/src/libserver/fuzzy_backend.c
@@ -295,14 +295,14 @@ rspamd_fuzzy_backend_create (struct event_base *ev_base,
}
}
- bk = g_slice_alloc0 (sizeof (*bk));
+ bk = g_malloc0 (sizeof (*bk));
bk->ev_base = ev_base;
bk->expire = expire;
bk->type = type;
bk->subr = &fuzzy_subrs[type];
if ((bk->subr_ud = bk->subr->init (bk, config, cfg, err)) == NULL) {
- g_slice_free1 (sizeof (*bk), bk);
+ g_free (bk);
return NULL;
}
@@ -445,7 +445,7 @@ rspamd_fuzzy_backend_close (struct rspamd_fuzzy_backend *bk)
bk->subr->close (bk, bk->subr_ud);
- g_slice_free1 (sizeof (*bk), bk);
+ g_free (bk);
}
struct event_base*