aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/fuzzy_backend_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/fuzzy_backend_sqlite.c')
-rw-r--r--src/libserver/fuzzy_backend_sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/fuzzy_backend_sqlite.c b/src/libserver/fuzzy_backend_sqlite.c
index 178f8d2be..84c6921fb 100644
--- a/src/libserver/fuzzy_backend_sqlite.c
+++ b/src/libserver/fuzzy_backend_sqlite.c
@@ -426,7 +426,7 @@ rspamd_fuzzy_backend_sqlite_open_db (const gchar *path, GError **err)
g_assert (path != NULL);
- bk = g_slice_alloc (sizeof (*bk));
+ bk = g_malloc0 (sizeof (*bk));
bk->path = g_strdup (path);
bk->expired = 0;
bk->pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), "fuzzy_backend");
@@ -1000,7 +1000,7 @@ rspamd_fuzzy_backend_sqlite_close (struct rspamd_fuzzy_backend_sqlite *backend)
rspamd_mempool_delete (backend->pool);
}
- g_slice_free1 (sizeof (*backend), backend);
+ g_free (backend);
}
}