diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-28 12:28:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-28 12:28:38 +0100 |
commit | 4656f5525d110e3951672ad66a29cfb395f7d32f (patch) | |
tree | 4d53af775cc1b00e6d1fc67dbc25ce7e7c2bde79 /src/libserver/fuzzy_backend_sqlite.c | |
parent | aed03ec17f71d9bf9fcb43c0463b834331623101 (diff) | |
download | rspamd-4656f5525d110e3951672ad66a29cfb395f7d32f.tar.gz rspamd-4656f5525d110e3951672ad66a29cfb395f7d32f.zip |
[Minor] More g_slice cleanups
Diffstat (limited to 'src/libserver/fuzzy_backend_sqlite.c')
-rw-r--r-- | src/libserver/fuzzy_backend_sqlite.c | 4 |
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); } } |